home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 February: Tool Chest / Dev.CD Feb 00 TC.toast / pc / tool chest / macapp / install macapp r13u4 / Apple Frameworks / MacApp / Libraries / App / Includes / UVUAssist.h < prev   
MacBinary  |  1998-10-13  |  18.9 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Oct 13 06:00:00 1998, modified Tue Oct 13 06:00:00 1998, creator 'CWIE', type ASCII, 18438 bytes "UVUAssist.h" , at 0x4886 614 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 55 56 55 41 73 73 | 69 73 74 2e 68 00 00 00 |..UVUAss|ist.h...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 48 06 00 | 00 02 66 b2 48 d5 20 b2 |.....H..|..f.H. .|
|00000060| 48 d5 20 00 00 0c 00 00 | 00 00 00 00 00 00 00 00 |H. .....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9c ab 00 00 |........|........|
|00000080| 2f 2f 09 46 69 6c 65 3a | 09 09 55 56 55 41 73 73 |//.File:|..UVUAss|
|00000090| 69 73 74 2e 68 20 2d 20 | 4d 61 63 41 70 70 20 33 |ist.h - |MacApp 3|
|000000a0| 2e 31 20 63 6f 6d 70 61 | 74 69 62 6c 65 20 76 65 |.1 compa|tible ve|
|000000b0| 72 73 69 6f 6e 0d 2f 2f | 0d 2f 2f 09 43 6f 6e 74 |rsion.//|.//.Cont|
|000000c0| 61 69 6e 73 3a 09 43 2b | 2b 20 68 65 61 64 65 72 |ains:.C+|+ header|
|000000d0| 20 66 69 6c 65 20 66 6f | 72 20 74 68 65 20 56 2e | file fo|r the V.|
|000000e0| 55 2e 20 41 73 73 69 73 | 74 61 6e 63 65 20 48 6f |U. Assis|tance Ho|
|000000f0| 6f 6b 20 66 6f 72 20 4d | 61 63 41 70 70 20 61 70 |ok for M|acApp ap|
|00000100| 70 6c 69 63 61 74 69 6f | 6e 73 0d 2f 2f 0d 2f 2f |plicatio|ns.//.//|
|00000110| 09 57 72 69 74 74 65 6e | 20 62 79 3a 09 4a 69 6d |.Written| by:.Jim|
|00000120| 20 53 63 68 6e 65 69 64 | 65 72 20 61 6e 64 20 4a | Schneid|er and J|
|00000130| 65 72 6f 65 6e 20 53 63 | 68 61 6c 6b 0d 2f 2f 0d |eroen Sc|halk.//.|
|00000140| 2f 2f 09 43 6f 70 79 72 | 69 67 68 74 20 a9 20 31 |//.Copyr|ight . 1|
|00000150| 39 39 31 2d 39 38 20 62 | 79 20 41 70 70 6c 65 20 |991-98 b|y Apple |
|00000160| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2e 20 41 |Computer|, Inc. A|
|00000170| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|00000180| 65 64 2e 0d 2f 2f 0d 2f | 2f 20 20 56 65 72 73 69 |ed..//./|/ Versi|
|00000190| 6f 6e 3a 20 32 2e 30 64 | 31 0d 0d 2f 2a 0d 09 43 |on: 2.0d|1../*..C|
|000001a0| 68 61 6e 67 65 20 48 69 | 73 74 6f 72 79 3a 0d 2a |hange Hi|story:.*|
|000001b0| 2f 0d 0d 23 69 66 6e 64 | 65 66 20 5f 5f 55 56 55 |/..#ifnd|ef __UVU|
|000001c0| 41 53 53 49 53 54 5f 5f | 0d 23 64 65 66 69 6e 65 |ASSIST__|.#define|
|000001d0| 20 5f 5f 55 56 55 41 53 | 53 49 53 54 5f 5f 0d 0d | __UVUAS|SIST__..|
|000001e0| 23 69 66 20 71 4e 65 65 | 64 73 56 55 0d 0d 2f 2f |#if qNee|dsVU..//|
|000001f0| 20 4d 61 63 41 70 70 0d | 0d 23 69 66 6e 64 65 66 | MacApp.|.#ifndef|
|00000200| 20 5f 5f 55 45 56 45 4e | 54 48 41 4e 44 4c 45 52 | __UEVEN|THANDLER|
|00000210| 5f 5f 0d 23 69 6e 63 6c | 75 64 65 20 22 55 45 76 |__.#incl|ude "UEv|
|00000220| 65 6e 74 48 61 6e 64 6c | 65 72 2e 68 22 0d 23 65 |entHandl|er.h".#e|
|00000230| 6e 64 69 66 0d 0d 23 69 | 66 6e 64 65 66 20 5f 5f |ndif..#i|fndef __|
|00000240| 55 47 45 4f 4d 45 54 52 | 59 5f 5f 0d 23 69 6e 63 |UGEOMETR|Y__.#inc|
|00000250| 6c 75 64 65 20 22 55 47 | 65 6f 6d 65 74 72 79 2e |lude "UG|eometry.|
|00000260| 68 22 0d 23 65 6e 64 69 | 66 0d 0d 2f 2f 20 54 6f |h".#endi|f..// To|
|00000270| 6f 6c 62 6f 78 0d 0d 23 | 69 66 6e 64 65 66 20 5f |olbox..#|ifndef _|
|00000280| 5f 4d 45 4e 55 53 5f 5f | 0d 23 69 6e 63 6c 75 64 |_MENUS__|.#includ|
|00000290| 65 20 3c 4d 65 6e 75 73 | 2e 68 3e 0d 23 65 6e 64 |e <Menus|.h>.#end|
|000002a0| 69 66 0d 0d 2f 2f 20 55 | 73 65 20 57 69 6e 64 6f |if..// U|se Windo|
|000002b0| 77 73 5f 41 43 2e 68 20 | 69 6e 73 74 65 61 64 20 |ws_AC.h |instead |
|000002c0| 6f 66 20 3c 77 69 6e 64 | 6f 77 73 2e 68 3e 20 66 |of <wind|ows.h> f|
|000002d0| 6f 72 20 58 50 6c 61 74 | 66 6f 72 6d 20 63 6f 6d |or XPlat|form com|
|000002e0| 70 61 74 61 62 69 6c 69 | 74 79 2e 0d 23 69 66 6e |patabili|ty..#ifn|
|000002f0| 64 65 66 20 5f 5f 57 69 | 6e 64 6f 77 73 5f 41 43 |def __Wi|ndows_AC|
|00000300| 5f 5f 0d 23 69 6e 63 6c | 75 64 65 20 22 57 69 6e |__.#incl|ude "Win|
|00000310| 64 6f 77 73 5f 41 43 2e | 68 22 0d 23 65 6e 64 69 |dows_AC.|h".#endi|
|00000320| 66 0d 0d 63 6c 61 73 73 | 20 54 43 6f 6e 74 72 6f |f..class| TContro|
|00000330| 6c 3b 0d 63 6c 61 73 73 | 20 54 43 74 6c 4d 67 72 |l;.class| TCtlMgr|
|00000340| 3b 0d 63 6c 61 73 73 20 | 54 47 72 69 64 56 69 65 |;.class |TGridVie|
|00000350| 77 3b 0d 63 6c 61 73 73 | 20 54 50 6f 70 75 70 3b |w;.class| TPopup;|
|00000360| 0d 63 6c 61 73 73 20 54 | 56 69 65 77 3b 0d 0d 2f |.class T|View;../|
|00000370| 2a 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |* ======|========|
|00000380| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000390| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003b0| 3d 3d 3d 3d 20 2a 2f 0d | 2f 2a 20 43 6f 6e 73 74 |==== */.|/* Const|
|000003c0| 61 6e 74 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 20 |ant defi|nitions |
|000003d0| 2a 2f 0d 0d 2f 2a 20 0d | 7c 09 54 68 69 73 20 69 |*/../* .||.This i|
|000003e0| 73 20 74 68 65 20 69 64 | 6c 65 20 66 72 65 71 75 |s the id|le frequ|
|000003f0| 65 6e 63 79 20 6f 66 20 | 56 55 41 73 73 69 73 74 |ency of |VUAssist|
|00000400| 2e 20 20 42 79 20 64 65 | 66 61 75 6c 74 20 74 68 |. By de|fault th|
|00000410| 69 73 0d 7c 09 69 73 20 | 73 65 74 20 74 6f 20 67 |is.|.is |set to g|
|00000420| 69 76 65 20 56 55 41 73 | 73 69 73 74 20 61 20 76 |ive VUAs|sist a v|
|00000430| 65 72 79 20 68 69 67 68 | 20 69 64 6c 65 20 66 72 |ery high| idle fr|
|00000440| 65 71 75 65 6e 63 79 2e | 20 20 45 76 65 6e 0d 7c |equency.| Even.||
|00000450| 09 74 68 6f 75 67 68 20 | 56 55 41 73 73 69 73 74 |.though |VUAssist|
|00000460| 20 64 6f 65 73 20 6e 6f | 74 68 69 6e 67 20 77 69 | does no|thing wi|
|00000470| 74 68 20 74 68 69 73 20 | 69 64 6c 65 20 74 69 6d |th this |idle tim|
|00000480| 65 2c 20 74 68 69 73 20 | 0d 7c 09 65 6e 73 75 72 |e, this |.|.ensur|
|00000490| 65 73 20 74 68 61 74 20 | 53 79 73 74 65 6d 54 61 |es that |SystemTa|
|000004a0| 73 6b 20 77 69 6c 6c 20 | 62 65 20 63 61 6c 6c 65 |sk will |be calle|
|000004b0| 64 20 66 72 65 71 75 65 | 6e 74 6c 79 20 77 68 69 |d freque|ntly whi|
|000004c0| 6c 65 0d 7c 09 74 68 65 | 20 63 6f 6e 74 65 78 74 |le.|.the| context|
|000004d0| 20 6f 66 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 | of the |applicat|
|000004e0| 69 6f 6e 20 69 73 20 74 | 68 65 20 63 75 72 72 65 |ion is t|he curre|
|000004f0| 6e 74 20 63 6f 6e 74 65 | 78 74 2e 20 20 49 6e 0d |nt conte|xt. In.|
|00000500| 7c 09 73 68 6f 72 74 2c | 20 74 68 69 73 20 65 6e ||.short,| this en|
|00000510| 61 62 6c 65 73 20 41 67 | 65 6e 74 20 56 55 2c 20 |ables Ag|ent VU, |
|00000520| 77 68 69 63 68 20 6f 70 | 65 72 61 74 65 73 20 61 |which op|erates a|
|00000530| 74 20 53 79 73 74 65 6d | 54 61 73 6b 0d 7c 09 77 |t System|Task.|.w|
|00000540| 68 69 6c 65 20 74 68 65 | 20 61 70 70 27 73 20 63 |hile the| app's c|
|00000550| 6f 6e 74 65 78 74 20 69 | 73 20 63 75 72 72 65 6e |ontext i|s curren|
|00000560| 74 2c 20 74 6f 20 6f 70 | 65 72 61 74 65 20 61 74 |t, to op|erate at|
|00000570| 20 6d 61 78 69 6d 75 6d | 0d 7c 09 65 66 66 69 63 | maximum|.|.effic|
|00000580| 69 65 6e 63 79 2e 20 20 | 54 68 69 73 20 6d 61 78 |iency. |This max|
|00000590| 69 6d 69 7a 65 73 20 56 | 2e 55 2e 20 70 65 72 66 |imizes V|.U. perf|
|000005a0| 6f 72 6d 61 6e 63 65 2e | 20 20 49 66 2c 20 66 6f |ormance.| If, fo|
|000005b0| 72 20 73 6f 6d 65 0d 7c | 09 72 65 61 73 6f 6e 2c |r some.||.reason,|
|000005c0| 20 79 6f 75 20 77 6f 75 | 6c 64 20 6c 69 6b 65 20 | you wou|ld like |
|000005d0| 74 6f 20 6c 65 74 20 74 | 68 65 20 61 70 70 2e 20 |to let t|he app. |
|000005e0| 73 6c 65 65 70 20 66 6f | 72 20 6c 6f 6e 67 65 72 |sleep fo|r longer|
|000005f0| 0d 7c 09 70 65 72 69 6f | 64 73 20 6f 66 20 74 69 |.|.perio|ds of ti|
|00000600| 6d 65 2c 20 79 6f 75 20 | 63 61 6e 20 69 6e 63 72 |me, you |can incr|
|00000610| 65 61 73 65 20 74 68 69 | 73 20 76 61 6c 75 65 20 |ease thi|s value |
|00000620| 6f 72 2c 20 62 65 74 74 | 65 72 20 79 65 74 2c 0d |or, bett|er yet,.|
|00000630| 7c 09 63 61 6c 6c 20 67 | 56 55 41 73 73 69 73 74 ||.call g|VUAssist|
|00000640| 2e 53 65 74 49 64 6c 65 | 46 72 65 71 20 77 69 74 |.SetIdle|Freq wit|
|00000650| 68 20 74 68 65 20 6e 65 | 77 20 66 72 65 71 75 65 |h the ne|w freque|
|00000660| 6e 63 79 2e 20 20 4e 6f | 74 65 2c 0d 7c 09 68 6f |ncy. No|te,.|.ho|
|00000670| 77 65 76 65 72 2c 20 74 | 68 61 74 20 74 68 69 73 |wever, t|hat this|
|00000680| 20 77 69 6c 6c 20 63 61 | 75 73 65 20 56 2e 55 2e | will ca|use V.U.|
|00000690| 20 74 6f 20 72 75 6e 20 | 6d 6f 72 65 20 73 6c 6f | to run |more slo|
|000006a0| 77 6c 79 20 61 67 61 69 | 6e 73 74 20 0d 7c 09 74 |wly agai|nst .|.t|
|000006b0| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 0d |he appli|cation..|
|000006c0| 2a 2f 0d 63 6f 6e 73 74 | 20 6c 6f 6e 67 20 6b 56 |*/.const| long kV|
|000006d0| 55 41 73 73 69 73 74 49 | 64 6c 65 46 72 65 71 20 |UAssistI|dleFreq |
|000006e0| 3d 20 31 3b 0d 0d 0d 65 | 6e 75 6d 20 4d 6f 6c 65 |= 1;...e|num Mole|
|000006f0| 45 72 72 6f 72 20 7b 0d | 09 6d 4e 6f 45 72 72 2c |Error {.|.mNoErr,|
|00000700| 09 09 09 09 09 2f 2a 20 | 30 20 2a 2f 0d 09 6d 55 |...../* |0 */..mU|
|00000710| 6e 6b 6e 6f 77 6e 53 65 | 6c 65 63 74 6f 72 2c 0d |nknownSe|lector,.|
|00000720| 09 6d 41 6c 72 65 61 64 | 79 4f 6e 6c 69 6e 65 2c |.mAlread|yOnline,|
|00000730| 0d 09 6d 44 65 66 65 72 | 72 65 64 4b 69 6c 6c 65 |..mDefer|redKille|
|00000740| 64 2c 0d 09 6d 4f 74 68 | 65 72 56 55 48 6f 73 74 |d,..mOth|erVUHost|
|00000750| 2c 0d 09 6d 42 61 64 41 | 64 64 72 65 73 73 2c 09 |,..mBadA|ddress,.|
|00000760| 09 09 2f 2a 20 35 20 2a | 2f 0d 09 6d 42 61 64 48 |../* 5 *|/..mBadH|
|00000770| 61 6e 64 6c 65 2c 0d 09 | 6d 42 61 64 42 6c 6f 63 |andle,..|mBadBloc|
|00000780| 6b 53 69 7a 65 2c 0d 09 | 6d 4e 6f 4b 62 64 44 72 |kSize,..|mNoKbdDr|
|00000790| 76 72 2c 0d 09 6d 42 69 | 67 46 61 69 6c 2c 0d 09 |vr,..mBi|gFail,..|
|000007a0| 6d 42 61 64 54 61 72 67 | 65 74 2c 09 09 09 09 2f |mBadTarg|et,..../|
|000007b0| 2a 20 31 30 20 2a 2f 0d | 09 6d 4e 6f 43 61 6c 6c |* 10 */.|.mNoCall|
|000007c0| 2c 0d 09 6d 4e 6f 50 65 | 6e 64 69 6e 67 54 61 73 |,..mNoPe|ndingTas|
|000007d0| 6b 2c 0d 09 6d 41 70 70 | 4e 6f 74 46 6f 75 6e 64 |k,..mApp|NotFound|
|000007e0| 2c 0d 09 6d 4e 6f 41 70 | 70 49 6e 66 6f 2c 0d 09 |,..mNoAp|pInfo,..|
|000007f0| 6d 44 72 69 76 65 72 44 | 65 66 65 72 72 65 64 2c |mDriverD|eferred,|
|00000800| 09 09 2f 2a 20 31 35 20 | 2a 2f 0d 09 6d 42 61 64 |../* 15 |*/..mBad|
|00000810| 44 49 74 65 6d 49 6e 64 | 65 78 2c 0d 09 6d 42 61 |DItemInd|ex,..mBa|
|00000820| 64 49 74 65 6d 48 64 6c | 2c 0d 09 6d 43 75 72 73 |dItemHdl|,..mCurs|
|00000830| 42 75 73 79 2c 0d 09 6d | 42 61 64 4d 65 6e 75 52 |Busy,..m|BadMenuR|
|00000840| 61 6e 6b 2c 0d 09 6d 42 | 61 64 4d 65 6e 75 49 44 |ank,..mB|adMenuID|
|00000850| 2c 09 09 09 09 2f 2a 20 | 32 30 20 2a 2f 0d 09 6d |,..../* |20 */..m|
|00000860| 42 61 64 4d 65 6e 75 49 | 74 65 6d 49 6e 64 65 78 |BadMenuI|temIndex|
|00000870| 2c 0d 09 6d 42 61 64 4c | 61 73 74 4d 65 6e 75 49 |,..mBadL|astMenuI|
|00000880| 74 65 6d 49 6e 64 65 78 | 2c 0d 09 6d 48 61 6e 64 |temIndex|,..mHand|
|00000890| 6c 65 54 6f 6f 42 69 67 | 2c 0d 09 6d 4e 6f 43 6d |leTooBig|,..mNoCm|
|000008a0| 64 54 6f 41 62 6f 72 74 | 2c 0d 09 6d 52 65 6c 52 |dToAbort|,..mRelR|
|000008b0| 65 73 70 46 61 69 6c 2c | 09 09 09 2f 2a 20 32 35 |espFail,|.../* 25|
|000008c0| 20 2a 2f 0d 09 6d 4e 6f | 74 53 75 70 70 6f 72 74 | */..mNo|tSupport|
|000008d0| 65 64 4f 6e 54 68 69 73 | 4d 61 63 2c 09 09 09 2f |edOnThis|Mac,.../|
|000008e0| 2a 20 6e 65 77 20 69 6e | 20 32 2e 30 2e 2e 2e 20 |* new in| 2.0... |
|000008f0| 2a 2f 0d 09 6d 43 61 6e | 74 46 69 6e 64 41 70 70 |*/..mCan|tFindApp|
|00000900| 2c 0d 09 6d 43 61 6e 74 | 4c 61 75 6e 63 68 41 70 |,..mCant|LaunchAp|
|00000910| 70 2c 0d 09 6d 4c 61 75 | 6e 63 68 41 70 70 45 72 |p,..mLau|nchAppEr|
|00000920| 72 2c 0d 09 6d 45 6e 64 | 45 72 72 09 09 09 09 09 |r,..mEnd|Err.....|
|00000930| 2f 2a 20 33 30 20 2a 2f | 0d 7d 3b 0d 0d 0d 2f 2a |/* 30 */|.};.../*|
|00000940| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|00000950| 2d 2d 20 56 55 41 73 73 | 69 73 74 20 70 72 6f 63 |-- VUAss|ist proc|
|00000960| 20 64 61 74 61 20 73 74 | 72 75 63 74 75 72 65 73 | data st|ructures|
|00000970| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|00000980| 2d 2d 2d 2d 2d 20 2a 2f | 0d 2f 2a 20 54 68 65 20 |----- */|./* The |
|00000990| 66 6f 6c 6c 6f 77 69 6e | 67 20 64 61 74 61 20 73 |followin|g data s|
|000009a0| 74 72 75 63 74 75 72 65 | 73 20 61 6e 64 20 63 6f |tructure|s and co|
|000009b0| 6e 73 74 61 6e 74 73 20 | 61 72 65 20 6e 6f 74 20 |nstants |are not |
|000009c0| 75 73 65 64 20 62 79 20 | 74 68 65 20 6d 6f 6c 65 |used by |the mole|
|000009d0| 2e 20 54 68 65 79 27 72 | 65 0d 64 65 66 69 6e 65 |. They'r|e.define|
|000009e0| 64 20 66 6f 72 20 74 68 | 65 20 62 65 6e 65 66 69 |d for th|e benefi|
|000009f0| 74 20 6f 66 20 74 68 65 | 20 4d 61 63 41 70 70 20 |t of the| MacApp |
|00000a00| 56 55 41 73 73 69 73 74 | 20 72 6f 75 74 69 6e 65 |VUAssist| routine|
|00000a10| 2e 20 2a 2f 0d 0d 65 6e | 75 6d 20 56 69 65 77 49 |. */..en|um ViewI|
|00000a20| 74 65 6d 73 20 7b 0d 09 | 56 49 4e 6f 74 4d 65 6d |tems {..|VINotMem|
|00000a30| 62 65 72 2c 09 09 2f 2a | 20 6e 6f 74 20 61 20 63 |ber,../*| not a c|
|00000a40| 6f 6e 74 72 6f 6c 20 6f | 72 20 64 69 61 6c 6f 67 |ontrol o|r dialog|
|00000a50| 20 69 74 65 6d 20 2a 2f | 0d 09 56 49 42 75 74 74 | item */|..VIButt|
|00000a60| 6f 6e 2c 09 09 09 2f 2a | 20 54 42 75 74 74 6f 6e |on,.../*| TButton|
|00000a70| 20 2d 20 74 68 69 73 20 | 69 73 20 74 68 65 20 66 | - this |is the f|
|00000a80| 69 72 73 74 20 63 6f 6e | 74 72 6f 6c 20 2a 2f 0d |irst con|trol */.|
|00000a90| 09 56 49 52 61 64 69 6f | 2c 09 09 09 2f 2a 20 54 |.VIRadio|,.../* T|
|00000aa0| 52 61 64 69 6f 20 2a 2f | 0d 09 56 49 43 68 65 63 |Radio */|..VIChec|
|00000ab0| 6b 42 6f 78 2c 09 09 09 | 2f 2a 20 54 43 68 65 63 |kBox,...|/* TChec|
|00000ac0| 6b 42 6f 78 20 2a 2f 0d | 09 56 49 53 63 72 6f 6c |kBox */.|.VIScrol|
|00000ad0| 6c 42 61 72 2c 09 09 2f | 2a 20 54 53 63 72 6f 6c |lBar,../|* TScrol|
|00000ae0| 6c 42 61 72 20 6f 72 20 | 54 53 53 63 72 6f 6c 6c |lBar or |TSScroll|
|00000af0| 42 61 72 20 2d 20 74 68 | 69 73 20 69 73 20 74 68 |Bar - th|is is th|
|00000b00| 65 20 6c 61 73 74 20 63 | 6f 6e 74 72 6f 6c 20 2a |e last c|ontrol *|
|00000b10| 2f 0d 09 56 49 50 6f 70 | 75 70 2c 09 09 09 2f 2a |/..VIPop|up,.../*|
|00000b20| 20 54 50 6f 70 75 70 20 | 2a 2f 0d 09 56 49 53 74 | TPopup |*/..VISt|
|00000b30| 61 74 54 65 78 74 2c 09 | 09 09 2f 2a 20 54 53 74 |atText,.|../* TSt|
|00000b40| 61 74 69 63 54 65 78 74 | 20 2d 20 66 72 6f 6d 20 |aticText| - from |
|00000b50| 68 65 72 65 20 6f 6e 20 | 61 72 65 20 64 69 61 6c |here on |are dial|
|00000b60| 6f 67 20 69 74 65 6d 73 | 20 6f 6e 6c 79 20 2a 2f |og items| only */|
|00000b70| 0d 09 56 49 45 64 69 74 | 54 65 78 74 2c 09 09 09 |..VIEdit|Text,...|
|00000b80| 2f 2a 20 54 45 64 69 74 | 54 65 78 74 20 6f 72 20 |/* TEdit|Text or |
|00000b90| 54 4e 75 6d 62 65 72 54 | 65 78 74 20 2a 2f 0d 09 |TNumberT|ext */..|
|00000ba0| 56 49 49 63 6f 6e 2c 09 | 09 09 09 2f 2a 20 54 49 |VIIcon,.|.../* TI|
|00000bb0| 63 6f 6e 20 2a 2f 0d 09 | 56 49 50 69 63 74 75 72 |con */..|VIPictur|
|00000bc0| 65 2c 09 09 09 2f 2a 20 | 54 50 69 63 74 75 72 65 |e,.../* |TPicture|
|00000bd0| 20 2a 2f 0d 09 56 49 54 | 65 78 74 45 64 69 74 2c | */..VIT|extEdit,|
|00000be0| 09 09 09 2f 2a 20 54 54 | 45 56 69 65 77 20 6f 72 |.../* TT|EView or|
|00000bf0| 20 54 44 69 61 6c 6f 67 | 54 45 56 69 65 77 20 2a | TDialog|TEView *|
|00000c00| 2f 0d 09 56 49 47 72 69 | 64 49 74 65 6d 09 09 09 |/..VIGri|dItem...|
|00000c10| 2f 2a 20 63 65 6c 6c 20 | 6f 66 20 61 20 54 47 72 |/* cell |of a TGr|
|00000c20| 69 64 56 69 65 77 20 2a | 2f 0d 7d 3b 0d 0d 2f 2a |idView *|/.};../*|
|00000c30| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | =======|========|
|00000c40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000c50| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000c60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000c70| 3d 3d 3d 20 2a 2f 0d 20 | 20 0d 2f 2a 20 2d 2d 2d |=== */. | ./* ---|
|00000c80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 20 47 |--------|------ G|
|00000c90| 65 6e 65 72 61 6c 20 4d | 6f 6c 65 20 64 61 74 61 |eneral M|ole data|
|00000ca0| 20 73 74 72 75 63 74 75 | 72 65 73 20 2d 2d 2d 2d | structu|res ----|
|00000cb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000cc0| 20 2a 2f 0d 2f 2a 20 54 | 68 65 20 66 6f 6c 6c 6f | */./* T|he follo|
|00000cd0| 77 69 6e 67 20 64 61 74 | 61 20 73 74 72 75 63 74 |wing dat|a struct|
|00000ce0| 75 72 65 73 20 61 72 65 | 20 75 73 65 64 20 62 79 |ures are| used by|
|00000cf0| 20 41 67 65 6e 74 20 56 | 55 28 74 68 65 20 4d 6f | Agent V|U(the Mo|
|00000d00| 6c 65 29 2e 20 2a 2f 0d | 20 20 0d 2f 2a 20 0d 7c |le). */.| ./* .||
|00000d10| 09 53 65 6c 65 63 74 6f | 72 73 20 66 6f 72 20 74 |.Selecto|rs for t|
|00000d20| 68 65 20 63 75 72 72 65 | 6e 74 6c 79 20 69 6d 70 |he curre|ntly imp|
|00000d30| 6c 65 6d 65 6e 74 65 64 | 20 6d 6f 6c 65 20 72 6f |lemented| mole ro|
|00000d40| 75 74 69 6e 65 73 3a 0d | 7c 09 41 74 20 6c 65 61 |utines:.||.At lea|
|00000d50| 73 74 20 6f 6e 65 20 27 | 6d 6f 6c 65 20 61 73 73 |st one '|mole ass|
|00000d60| 69 73 74 27 20 72 6f 75 | 74 69 6e 65 20 68 61 73 |ist' rou|tine has|
|00000d70| 20 63 6f 6d 65 20 74 6f | 20 64 65 70 65 6e 64 20 | come to| depend |
|00000d80| 6f 6e 20 74 68 65 73 65 | 20 73 65 6c 65 63 74 6f |on these| selecto|
|00000d90| 72 20 76 61 6c 75 65 73 | 2e 0d 7c 09 54 68 65 72 |r values|..|.Ther|
|00000da0| 65 66 6f 72 65 2c 20 77 | 65 20 73 68 6f 75 6c 64 |efore, w|e should|
|00000db0| 20 6d 61 6b 65 20 61 6e | 20 65 66 66 6f 72 74 20 | make an| effort |
|00000dc0| 6e 6f 74 20 74 6f 20 63 | 68 61 6e 67 65 20 65 73 |not to c|hange es|
|00000dd0| 74 61 62 6c 69 73 68 65 | 64 20 76 61 6c 75 65 73 |tablishe|d values|
|00000de0| 20 77 68 65 6e 20 61 64 | 64 69 6e 67 20 6e 65 77 | when ad|ding new|
|00000df0| 20 6f 6e 65 73 2e 0d 7c | 09 53 6f 20 6e 65 77 20 | ones..||.So new |
|00000e00| 55 50 50 45 52 20 4d 4f | 4c 45 20 63 6f 6d 6d 61 |UPPER MO|LE comma|
|00000e10| 6e 64 73 20 67 6f 20 74 | 6f 20 74 68 65 20 65 6e |nds go t|o the en|
|00000e20| 64 20 6f 66 20 74 68 65 | 20 6c 69 73 74 20 28 72 |d of the| list (r|
|00000e30| 69 67 68 74 20 62 65 66 | 6f 72 65 20 45 6d 70 74 |ight bef|ore Empt|
|00000e40| 79 44 65 66 65 72 72 65 | 64 29 2c 0d 7c 09 61 6e |yDeferre|d),.|.an|
|00000e50| 64 20 6e 65 77 20 4c 4f | 57 45 52 20 4d 4f 4c 45 |d new LO|WER MOLE|
|00000e60| 20 63 6f 6d 6d 61 6e 64 | 73 20 67 6f 20 62 65 66 | command|s go bef|
|00000e70| 6f 72 65 20 74 68 65 20 | 62 65 67 69 6e 6e 69 6e |ore the |beginnin|
|00000e80| 67 20 6f 66 20 74 68 65 | 20 6c 69 73 74 2c 20 61 |g of the| list, a|
|00000e90| 73 20 6e 65 67 61 74 69 | 76 65 20 6e 75 6d 62 65 |s negati|ve numbe|
|00000ea0| 72 73 2e 0d 2a 2f 0d 65 | 6e 75 6d 20 4d 6f 6c 65 |rs..*/.e|num Mole|
|00000eb0| 53 65 6c 65 63 74 6f 72 | 73 20 7b 20 0d 2f 2a 20 |Selector|s { ./* |
|00000ec0| 4c 6f 77 65 72 20 6d 6f | 6c 65 20 63 6f 6d 6d 61 |Lower mo|le comma|
|00000ed0| 6e 64 73 3a 20 2a 2f 0d | 09 45 6e 74 4d 75 6c 74 |nds: */.|.EntMult|
|00000ee0| 4b 65 79 73 09 09 3d 20 | 2d 33 2c 09 2f 2a 20 6e |Keys..= |-3,./* n|
|00000ef0| 65 77 20 69 6e 20 32 2e | 30 20 2a 2f 0d 09 53 47 |ew in 2.|0 */..SG|
|00000f00| 65 73 74 61 6c 74 09 09 | 3d 20 2d 32 2c 09 2f 2a |estalt..|= -2,./*|
|00000f10| 20 6e 65 77 20 69 6e 20 | 32 2e 30 20 2a 2f 0d 09 | new in |2.0 */..|
|00000f20| 41 62 6f 72 74 50 65 6e | 64 69 6e 67 20 09 3d 20 |AbortPen|ding .= |
|00000f30| 2d 31 2c 0d 09 53 53 74 | 61 74 75 73 09 09 09 3d |-1,..SSt|atus...=|
|00000f40| 20 30 2c 20 0d 09 47 6f | 4f 66 66 2c 20 0d 09 43 | 0, ..Go|Off, ..C|
|00000f50| 6f 6d 65 4f 6e 2c 20 0d | 09 53 42 6c 6f 63 6b 2c |omeOn, .|.SBlock,|
|00000f60| 20 0d 09 50 42 6c 6f 63 | 6b 2c 20 09 09 2f 2a 20 | ..PBloc|k, ../* |
|00000f70| 6e 6f 74 20 63 75 72 72 | 65 6e 74 6c 79 20 75 73 |not curr|ently us|
|00000f80| 65 64 20 62 79 20 56 55 | 20 2a 2f 0d 09 53 42 6c |ed by VU| */..SBl|
|00000f90| 6b 53 69 7a 65 2c 09 09 | 2f 2a 20 6e 6f 74 20 63 |kSize,..|/* not c|
|00000fa0| 75 72 72 65 6e 74 6c 79 | 20 75 73 65 64 20 62 79 |urrently| used by|
|00000fb0| 20 56 55 20 20 35 20 2a | 2f 0d 09 53 4d 6f 75 73 | VU 5 *|/..SMous|
|00000fc0| 65 2c 0d 09 50 4d 6f 75 | 73 65 2c 0d 09 45 6e 74 |e,..PMou|se,..Ent|
|00000fd0| 4b 65 79 2c 09 09 09 2f | 2a 20 38 20 2a 2f 0d 2f |Key,.../|* 8 */./|
|00000fe0| 2a 20 55 70 70 65 72 20 | 6d 6f 6c 65 20 63 6f 6d |* Upper |mole com|
|00000ff0| 6d 61 6e 64 73 3a 20 2a | 2f 0d 09 53 4d 65 6e 75 |mands: *|/..SMenu|
|00001000| 49 6e 66 6f 2c 09 09 2f | 2a 20 39 20 2a 2f 0d 09 |Info,../|* 9 */..|
|00001010| 53 4d 65 6e 75 49 74 65 | 6d 73 2c 09 09 2f 2a 20 |SMenuIte|ms,../* |
|00001020| 31 30 20 2a 2f 0d 09 53 | 65 74 4d 49 74 65 6d 4b |10 */..S|etMItemK|
|00001030| 65 79 2c 09 2f 2a 20 6e | 6f 74 20 63 75 72 72 65 |ey,./* n|ot curre|
|00001040| 6e 74 6c 79 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 |ntly imp|lemented|
|00001050| 20 6f 72 20 75 73 65 64 | 20 2a 2f 0d 09 53 46 72 | or used| */..SFr|
|00001060| 6f 6e 74 57 69 6e 64 2c | 0d 09 53 46 69 6e 64 57 |ontWind,|..SFindW|
|00001070| 69 6e 64 2c 0d 09 53 57 | 69 6e 64 49 6e 66 6f 2c |ind,..SW|indInfo,|
|00001080| 0d 09 53 46 69 6e 64 43 | 74 6c 2c 09 09 2f 2a 20 |..SFindC|tl,../* |
|00001090| 31 35 20 2a 2f 0d 09 53 | 43 74 6c 49 6e 66 6f 2c |15 */..S|CtlInfo,|
|000010a0| 0d 09 53 46 69 6e 64 44 | 49 74 65 6d 2c 0d 09 53 |..SFindD|Item,..S|
|000010b0| 44 49 74 65 6d 49 6e 66 | 6f 2c 0d 09 53 52 65 73 |DItemInf|o,..SRes|
|000010c0| 50 65 65 6b 2c 0d 09 53 | 79 6e 63 53 42 6c 6f 63 |Peek,..S|yncSBloc|
|000010d0| 6b 2c 09 09 2f 2a 20 32 | 30 20 2a 2f 0d 09 53 4e |k,../* 2|0 */..SN|
|000010e0| 65 78 74 45 76 65 6e 74 | 2c 0d 09 53 48 42 6c 6f |extEvent|,..SHBlo|
|000010f0| 63 6b 2c 0d 09 50 4d 6f | 75 73 65 53 74 72 69 6e |ck,..PMo|useStrin|
|00001100| 67 2c 0d 09 53 49 63 6f | 6e 48 65 69 67 68 74 2c |g,..SIco|nHeight,|
|00001110| 0d 09 53 53 63 72 69 70 | 74 49 6e 66 6f 2c 09 2f |..SScrip|tInfo,./|
|00001120| 2a 20 32 35 20 2a 2f 0d | 09 53 43 75 72 72 4b 43 |* 25 */.|.SCurrKC|
|00001130| 48 52 69 64 2c 0d 09 4c | 61 75 6e 63 68 41 70 70 |HRid,..L|aunchApp|
|00001140| 2c 09 09 2f 2a 20 6e 65 | 77 20 69 6e 20 32 2e 30 |,../* ne|w in 2.0|
|00001150| 20 2a 2f 0d 09 53 53 63 | 72 6e 49 6e 66 6f 2c 09 | */..SSc|rnInfo,.|
|00001160| 09 2f 2a 20 6e 65 77 20 | 69 6e 20 32 2e 30 20 2a |./* new |in 2.0 *|
|00001170| 2f 0d 09 53 52 65 73 50 | 69 65 63 65 2c 09 09 2f |/..SResP|iece,../|
|00001180| 2a 20 6e 65 77 20 69 6e | 20 32 2e 30 20 2a 2f 0d |* new in| 2.0 */.|
|00001190| 09 45 6d 70 74 79 44 65 | 66 65 72 72 65 64 2c 09 |.EmptyDe|ferred,.|
|000011a0| 2f 2a 20 33 30 20 2a 2f | 0d 09 45 6e 64 53 65 6c |/* 30 */|..EndSel|
|000011b0| 65 63 74 0d 7d 3b 0d 0d | 2f 2a 20 2d 2d 2d 2d 2d |ect.};..|/* -----|
|000011c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 4d 65 6e |--------|---- Men|
|000011d0| 75 20 72 65 6c 61 74 65 | 64 20 64 61 74 61 20 73 |u relate|d data s|
|000011e0| 74 72 75 63 74 75 72 65 | 73 20 2d 2d 2d 2d 2d 2d |tructure|s ------|
|000011f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 20 2a |--------|------ *|
|00001200| 2f 0d 0d 23 69 66 20 50 | 52 41 47 4d 41 5f 41 4c |/..#if P|RAGMA_AL|
|00001210| 49 47 4e 5f 53 55 50 50 | 4f 52 54 45 44 0d 23 70 |IGN_SUPP|ORTED.#p|
|00001220| 72 61 67 6d 61 20 6f 70 | 74 69 6f 6e 73 20 61 6c |ragma op|tions al|
|00001230| 69 67 6e 3d 6d 61 63 36 | 38 6b 0d 23 65 6e 64 69 |ign=mac6|8k.#endi|
|00001240| 66 0d 73 74 72 75 63 74 | 20 53 65 6e 64 4d 65 6e |f.struct| SendMen|
|00001250| 75 49 6e 66 6f 50 61 72 | 61 6d 73 20 7b 0d 09 73 |uInfoPar|ams {..s|
|00001260| 68 6f 72 74 20 09 09 6d | 65 6e 75 5f 72 61 6e 6b |hort ..m|enu_rank|
|00001270| 3b 09 2f 2a 20 6c 65 66 | 74 2d 74 6f 2d 72 69 67 |;./* lef|t-to-rig|
|00001280| 68 74 20 72 61 6e 6b 20 | 69 6e 20 6d 65 6e 75 20 |ht rank |in menu |
|00001290| 62 61 72 20 2a 2f 0d 09 | 73 68 6f 72 74 20 09 09 |bar */..|short ..|
|000012a0| 6d 65 6e 75 5f 49 44 3b | 09 2f 2a 20 49 44 20 6f |menu_ID;|./* ID o|
|000012b0| 66 20 6d 65 6e 75 2c 20 | 69 66 20 6b 6e 6f 77 6e |f menu, |if known|
|000012c0| 20 2a 2f 0d 09 4d 65 6e | 75 52 65 66 09 09 6d 65 | */..Men|uRef..me|
|000012d0| 6e 75 5f 68 64 6c 3b 09 | 2f 2a 20 4d 65 6e 75 52 |nu_hdl;.|/* MenuR|
|000012e0| 65 66 3b 20 68 61 6e 64 | 6c 65 20 74 6f 20 4d 65 |ef; hand|le to Me|
|000012f0| 6e 75 49 6e 66 6f 20 72 | 65 63 6f 72 64 2c 20 69 |nuInfo r|ecord, i|
|00001300| 66 20 6b 6e 6f 77 6e 20 | 28 66 6f 72 20 70 6f 70 |f known |(for pop|
|00001310| 75 70 73 29 20 2a 2f 0d | 0d 7d 3b 0d 23 69 66 20 |ups) */.|.};.#if |
|00001320| 50 52 41 47 4d 41 5f 41 | 4c 49 47 4e 5f 53 55 50 |PRAGMA_A|LIGN_SUP|
|00001330| 50 4f 52 54 45 44 0d 23 | 70 72 61 67 6d 61 20 6f |PORTED.#|pragma o|
|00001340| 70 74 69 6f 6e 73 20 61 | 6c 69 67 6e 3d 72 65 73 |ptions a|lign=res|
|00001350| 65 74 0d 23 65 6e 64 69 | 66 0d 0d 74 79 70 65 64 |et.#endi|f..typed|
|00001360| 65 66 20 73 74 72 75 63 | 74 20 53 65 6e 64 4d 65 |ef struc|t SendMe|
|00001370| 6e 75 49 6e 66 6f 50 61 | 72 61 6d 73 20 53 65 6e |nuInfoPa|rams Sen|
|00001380| 64 4d 65 6e 75 49 6e 66 | 6f 50 61 72 61 6d 73 3b |dMenuInf|oParams;|
|00001390| 0d 74 79 70 65 64 65 66 | 20 53 65 6e 64 4d 65 6e |.typedef| SendMen|
|000013a0| 75 49 6e 66 6f 50 61 72 | 61 6d 73 20 2a 53 65 6e |uInfoPar|ams *Sen|
|000013b0| 64 4d 65 6e 75 49 6e 66 | 6f 50 61 72 61 6d 73 50 |dMenuInf|oParamsP|
|000013c0| 74 72 3b 0d 0d 23 69 66 | 20 50 52 41 47 4d 41 5f |tr;..#if| PRAGMA_|
|000013d0| 41 4c 49 47 4e 5f 53 55 | 50 50 4f 52 54 45 44 0d |ALIGN_SU|PPORTED.|
|000013e0| 23 70 72 61 67 6d 61 20 | 6f 70 74 69 6f 6e 73 20 |#pragma |options |
|000013f0| 61 6c 69 67 6e 3d 6d 61 | 63 36 38 6b 0d 23 65 6e |align=ma|c68k.#en|
|00001400| 64 69 66 0d 73 74 72 75 | 63 74 20 4d 6f 6c 65 4d |dif.stru|ct MoleM|
|00001410| 65 6e 75 49 6e 66 6f 20 | 7b 0d 09 6c 6f 6e 67 20 |enuInfo |{..long |
|00001420| 6e 75 6d 5f 69 74 65 6d | 73 3b 09 09 09 2f 2a 20 |num_item|s;.../* |
|00001430| 6e 75 6d 62 65 72 20 6f | 66 20 69 74 65 6d 73 20 |number o|f items |
|00001440| 69 6e 20 74 68 65 20 6d | 65 6e 75 20 2a 2f 0d 09 |in the m|enu */..|
|00001450| 6c 6f 6e 67 20 72 61 6e | 6b 3b 09 09 09 09 2f 2a |long ran|k;..../*|
|00001460| 20 69 6e 20 6d 65 6e 75 | 20 62 61 72 2c 20 6c 65 | in menu| bar, le|
|00001470| 66 74 20 74 6f 20 72 69 | 67 68 74 20 2a 2f 0d 09 |ft to ri|ght */..|
|00001480| 6c 6f 6e 67 20 6c 65 66 | 74 5f 65 64 67 65 3b 09 |long lef|t_edge;.|
|00001490| 09 09 2f 2a 20 61 73 20 | 65 78 74 72 61 63 74 65 |../* as |extracte|
|000014a0| 64 20 66 72 6f 6d 20 74 | 68 65 20 6d 65 6e 75 20 |d from t|he menu |
|000014b0| 6c 69 73 74 20 66 69 65 | 6c 64 20 2a 2f 0d 09 73 |list fie|ld */..s|
|000014c0| 68 6f 72 74 20 6d 65 6e | 75 49 44 3b 09 09 09 2f |hort men|uID;.../|
|000014d0| 2a 20 6d 65 6e 75 20 49 | 44 20 61 73 20 6b 6e 6f |* menu I|D as kno|
|000014e0| 77 6e 20 74 6f 20 74 68 | 65 20 6d 65 6e 75 20 6d |wn to th|e menu m|
|000014f0| 61 6e 61 67 65 72 20 2a | 2f 0d 09 73 68 6f 72 74 |anager *|/..short|
|00001500| 20 6d 65 6e 75 57 69 64 | 74 68 3b 09 09 2f 2a 20 | menuWid|th;../* |
|00001510| 61 73 73 75 6d 69 6e 67 | 20 61 20 72 65 63 74 61 |assuming| a recta|
|00001520| 6e 67 75 6c 61 72 20 6d | 65 6e 75 2c 20 74 68 65 |ngular m|enu, the|
|00001530| 20 77 69 64 74 68 20 69 | 6e 20 70 69 78 65 6c 73 | width i|n pixels|
|00001540| 0d 09 09 09 09 09 09 09 | 4e 4f 54 20 74 68 65 20 |........|NOT the |
|00001550| 70 6f 73 69 74 69 6f 6e | 20 6f 6e 20 74 68 65 20 |position| on the |
|00001560| 73 63 72 65 65 6e 21 20 | 2a 2f 0d 09 73 68 6f 72 |screen! |*/..shor|
|00001570| 74 20 6d 65 6e 75 48 65 | 69 67 68 74 3b 09 09 2f |t menuHe|ight;../|
|00001580| 2a 20 61 73 73 75 6d 69 | 6e 67 20 61 20 72 65 63 |* assumi|ng a rec|
|00001590| 74 61 6e 67 75 6c 61 72 | 20 6d 65 6e 75 2c 20 74 |tangular| menu, t|
|000015a0| 68 65 20 68 65 69 67 68 | 74 20 69 6e 20 70 69 78 |he heigh|t in pix|
|000015b0| 65 6c 73 0d 09 09 09 09 | 09 09 09 4e 4f 54 20 74 |els.....|...NOT t|
|000015c0| 68 65 20 70 6f 73 69 74 | 69 6f 6e 20 6f 6e 20 74 |he posit|ion on t|
|000015d0| 68 65 20 73 63 72 65 65 | 6e 21 20 2a 2f 0d 09 6c |he scree|n! */..l|
|000015e0| 6f 6e 67 20 65 6e 61 62 | 6c 65 46 6c 61 67 73 3b |ong enab|leFlags;|
|000015f0| 09 09 2f 2a 20 4c 65 61 | 73 74 20 73 69 67 6e 69 |../* Lea|st signi|
|00001600| 66 69 63 61 6e 74 20 62 | 69 74 20 69 73 20 6f 6e |ficant b|it is on|
|00001610| 65 20 69 66 20 74 68 65 | 20 6d 65 6e 75 20 69 74 |e if the| menu it|
|00001620| 65 73 65 6c 66 20 69 73 | 20 0d 09 09 09 09 09 09 |eself is| .......|
|00001630| 09 65 6e 61 62 6c 65 64 | 2e 20 20 4f 74 68 65 72 |.enabled|. Other|
|00001640| 20 62 69 74 73 20 64 65 | 73 63 72 69 62 65 20 74 | bits de|scribe t|
|00001650| 68 65 20 65 6e 61 62 6c | 65 64 20 73 74 61 74 65 |he enabl|ed state|
|00001660| 20 6f 66 20 0d 09 09 09 | 09 09 09 09 74 68 65 20 | of ....|....the |
|00001670| 66 69 72 73 74 20 33 31 | 20 69 74 65 6d 73 20 2a |first 31| items *|
|00001680| 2f 0d 09 2f 2a 0d 09 7c | 09 54 68 65 20 6d 65 6e |/../*..||.The men|
|00001690| 75 20 66 69 65 6c 64 20 | 65 69 74 68 65 72 20 68 |u field |either h|
|000016a0| 61 73 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |as a poi|nter to |
|000016b0| 74 68 65 20 6d 65 6e 75 | 20 74 69 74 6c 65 20 61 |the menu| title a|
|000016c0| 73 20 61 20 70 61 73 63 | 61 6c 20 73 74 72 69 6e |s a pasc|al strin|
|000016d0| 67 2c 0d 09 7c 09 6f 72 | 20 74 68 65 20 74 65 78 |g,..|.or| the tex|
|000016e0| 74 20 6f 66 20 74 68 65 | 20 6d 65 6e 75 20 74 69 |t of the| menu ti|
|000016f0| 74 6c 65 20 65 78 74 65 | 6e 64 69 6e 67 20 6f 66 |tle exte|nding of|
|00001700| 66 20 69 6e 74 6f 20 74 | 68 65 20 62 75 66 66 65 |f into t|he buffe|
|00001710| 72 20 0d 09 2a 2f 0d 09 | 75 6e 69 6f 6e 20 7b 0d |r ..*/..|union {.|
|00001720| 20 20 20 20 09 75 6e 73 | 69 67 6e 65 64 20 63 68 | .uns|igned ch|
|00001730| 61 72 20 2a 44 61 74 61 | 3b 0d 09 09 75 6e 73 69 |ar *Data|;...unsi|
|00001740| 67 6e 65 64 20 63 68 61 | 72 20 74 65 78 74 5b 31 |gned cha|r text[1|
|00001750| 5d 3b 0d 09 7d 20 6d 65 | 6e 75 54 69 74 6c 65 3b |];..} me|nuTitle;|
|00001760| 0d 7d 3b 20 0d 23 69 66 | 20 50 52 41 47 4d 41 5f |.}; .#if| PRAGMA_|
|00001770| 41 4c 49 47 4e 5f 53 55 | 50 50 4f 52 54 45 44 0d |ALIGN_SU|PPORTED.|
|00001780| 23 70 72 61 67 6d 61 20 | 6f 70 74 69 6f 6e 73 20 |#pragma |options |
|00001790| 61 6c 69 67 6e 3d 72 65 | 73 65 74 0d 23 65 6e 64 |align=re|set.#end|
|000017a0| 69 66 0d 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |if..type|def stru|
|000017b0| 63 74 20 4d 6f 6c 65 4d | 65 6e 75 49 6e 66 6f 20 |ct MoleM|enuInfo |
|000017c0| 4d 6f 6c 65 4d 65 6e 75 | 49 6e 66 6f 3b 0d 74 79 |MoleMenu|Info;.ty|
|000017d0| 70 65 64 65 66 20 4d 6f | 6c 65 4d 65 6e 75 49 6e |pedef Mo|leMenuIn|
|000017e0| 66 6f 20 2a 4d 6f 6c 65 | 4d 65 6e 75 49 6e 66 6f |fo *Mole|MenuInfo|
|000017f0| 50 74 72 3b 0d 0d 23 69 | 66 20 50 52 41 47 4d 41 |Ptr;..#i|f PRAGMA|
|00001800| 5f 41 4c 49 47 4e 5f 53 | 55 50 50 4f 52 54 45 44 |_ALIGN_S|UPPORTED|
|00001810| 0d 23 70 72 61 67 6d 61 | 20 6f 70 74 69 6f 6e 73 |.#pragma| options|
|00001820| 20 61 6c 69 67 6e 3d 6d | 61 63 36 38 6b 0d 23 65 | align=m|ac68k.#e|
|00001830| 6e 64 69 66 0d 73 74 72 | 75 63 74 20 53 65 6e 64 |ndif.str|uct Send|
|00001840| 4d 65 6e 75 49 74 65 6d | 73 50 61 72 61 6d 73 20 |MenuItem|sParams |
|00001850| 7b 0d 09 73 68 6f 72 74 | 20 09 09 6d 65 6e 75 5f |{..short| ..menu_|
|00001860| 72 61 6e 6b 3b 09 09 2f | 2a 20 6c 65 66 74 2d 74 |rank;../|* left-t|
|00001870| 6f 2d 72 69 67 68 74 20 | 72 61 6e 6b 20 69 6e 20 |o-right |rank in |
|00001880| 6d 65 6e 75 20 62 61 72 | 20 2a 2f 0d 09 73 68 6f |menu bar| */..sho|
|00001890| 72 74 20 09 09 6d 65 6e | 75 5f 49 44 3b 09 09 2f |rt ..men|u_ID;../|
|000018a0| 2a 20 49 44 20 6f 66 20 | 6d 65 6e 75 2c 20 69 66 |* ID of |menu, if|
|000018b0| 20 6b 6e 6f 77 6e 20 2a | 2f 0d 09 73 68 6f 72 74 | known *|/..short|
|000018c0| 20 09 09 73 74 61 72 74 | 5f 69 74 65 6d 3b 09 09 | ..start|_item;..|
|000018d0| 2f 2a 20 72 61 6e 6b 20 | 6f 66 20 69 74 65 6d 20 |/* rank |of item |
|000018e0| 69 6e 20 6d 65 6e 75 20 | 74 6f 20 73 74 61 72 74 |in menu |to start|
|000018f0| 20 74 68 65 20 62 6c 6f | 63 6b 20 77 69 74 68 20 | the blo|ck with |
|00001900| 2a 2f 0d 09 73 68 6f 72 | 74 20 09 09 73 74 6f 70 |*/..shor|t ..stop|
|00001910| 5f 69 74 65 6d 3b 09 09 | 2f 2a 20 72 61 6e 6b 20 |_item;..|/* rank |
|00001920| 6f 66 20 6c 61 73 74 20 | 69 74 65 6d 20 69 6e 20 |of last |item in |
|00001930| 74 68 65 20 6d 65 6e 75 | 20 77 65 20 61 72 65 20 |the menu| we are |
|00001940| 69 6e 74 65 72 65 73 74 | 65 64 20 69 6e 20 2a 2f |interest|ed in */|
|00001950| 0d 09 4d 65 6e 75 52 65 | 66 09 09 6d 65 6e 75 5f |..MenuRe|f..menu_|
|00001960| 68 64 6c 3b 09 09 2f 2a | 20 68 61 6e 64 6c 65 20 |hdl;../*| handle |
|00001970| 74 6f 20 4d 65 6e 75 49 | 6e 66 6f 20 72 65 63 6f |to MenuI|nfo reco|
|00001980| 72 64 2c 20 69 66 20 6b | 6e 6f 77 6e 20 28 66 6f |rd, if k|nown (fo|
|00001990| 72 20 70 6f 70 75 70 73 | 29 20 2a 2f 0d 7d 3b 0d |r popups|) */.};.|
|000019a0| 23 69 66 20 50 52 41 47 | 4d 41 5f 41 4c 49 47 4e |#if PRAG|MA_ALIGN|
|000019b0| 5f 53 55 50 50 4f 52 54 | 45 44 0d 23 70 72 61 67 |_SUPPORT|ED.#prag|
|000019c0| 6d 61 20 6f 70 74 69 6f | 6e 73 20 61 6c 69 67 6e |ma optio|ns align|
|000019d0| 3d 72 65 73 65 74 0d 23 | 65 6e 64 69 66 0d 0d 74 |=reset.#|endif..t|
|000019e0| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 53 65 |ypedef s|truct Se|
|000019f0| 6e 64 4d 65 6e 75 49 74 | 65 6d 73 50 61 72 61 6d |ndMenuIt|emsParam|
|00001a00| 73 20 53 65 6e 64 4d 65 | 6e 75 49 74 65 6d 73 50 |s SendMe|nuItemsP|
|00001a10| 61 72 61 6d 73 3b 0d 74 | 79 70 65 64 65 66 20 53 |arams;.t|ypedef S|
|00001a20| 65 6e 64 4d 65 6e 75 49 | 74 65 6d 73 50 61 72 61 |endMenuI|temsPara|
|00001a30| 6d 73 20 2a 53 65 6e 64 | 4d 65 6e 75 49 74 65 6d |ms *Send|MenuItem|
|00001a40| 73 50 61 72 61 6d 73 50 | 74 72 3b 0d 0d 0d 0d 2f |sParamsP|tr;..../|
|00001a50| 2a 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |* ------|--------|
|00001a60| 2d 2d 2d 20 57 69 6e 64 | 6f 77 20 72 65 6c 61 74 |--- Wind|ow relat|
|00001a70| 65 64 20 64 61 74 61 20 | 73 74 72 75 63 74 75 72 |ed data |structur|
|00001a80| 65 73 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |es -----|--------|
|00001a90| 2d 2d 2d 2d 2d 2d 2d 20 | 2a 2f 0d 0d 2f 2a 20 0d |------- |*/../* .|
|00001aa0| 7c 09 55 73 65 64 20 69 | 6e 20 74 68 65 20 76 61 ||.Used i|n the va|
|00001ab0| 6c 69 64 20 66 6c 61 67 | 73 20 66 69 65 6c 64 2e |lid flag|s field.|
|00001ac0| 20 54 68 65 20 76 61 6c | 69 64 20 66 6c 61 67 73 | The val|id flags|
|00001ad0| 20 66 69 65 6c 64 20 72 | 65 66 6c 65 63 74 73 20 | field r|eflects |
|00001ae0| 77 68 69 63 68 20 6f 66 | 20 74 68 65 20 74 72 61 |which of| the tra|
|00001af0| 69 74 73 20 28 20 66 69 | 65 6c 64 73 20 29 20 74 |its ( fi|elds ) t|
|00001b00| 68 65 20 4d 6f 6c 65 20 | 77 61 73 20 61 62 6c 65 |he Mole |was able|
|00001b10| 0d 7c 09 74 6f 20 66 69 | 6c 6c 20 69 6e 20 61 63 |.|.to fi|ll in ac|
|00001b20| 63 75 72 61 74 65 6c 79 | 2e 20 0d 2a 2f 0d 23 64 |curately|. .*/.#d|
|00001b30| 65 66 69 6e 65 20 56 4b | 49 4e 44 20 09 09 09 09 |efine VK|IND ....|
|00001b40| 30 0d 23 64 65 66 69 6e | 65 20 56 57 52 45 43 54 |0.#defin|e VWRECT|
|00001b50| 20 09 09 09 09 31 0d 23 | 64 65 66 69 6e 65 20 56 | ....1.#|define V|
|00001b60| 52 41 4e 4b 20 09 09 09 | 09 32 0d 23 64 65 66 69 |RANK ...|.2.#defi|
|00001b70| 6e 65 20 56 46 4c 41 47 | 53 20 09 09 09 09 33 0d |ne VFLAG|S ....3.|
|00001b80| 23 64 65 66 69 6e 65 20 | 56 56 41 52 49 41 4e 54 |#define |VVARIANT|
|00001b90| 20 09 09 09 34 0d 23 64 | 65 66 69 6e 65 20 56 43 | ...4.#d|efine VC|
|00001ba0| 54 4c 43 4f 55 4e 54 20 | 09 09 09 35 0d 23 64 65 |TLCOUNT |...5.#de|
|00001bb0| 66 69 6e 65 20 56 54 49 | 54 4c 45 20 09 09 09 09 |fine VTI|TLE ....|
|00001bc0| 36 0d 23 64 65 66 69 6e | 65 20 56 41 4c 45 52 54 |6.#defin|e VALERT|
|00001bd0| 50 20 09 09 09 37 0d 23 | 64 65 66 69 6e 65 20 56 |P ...7.#|define V|
|00001be0| 49 54 45 4d 43 4e 54 20 | 09 09 09 38 0d 23 64 65 |ITEMCNT |...8.#de|
|00001bf0| 66 69 6e 65 20 56 49 54 | 45 4d 4c 49 53 54 20 09 |fine VIT|EMLIST .|
|00001c00| 09 09 39 0d 23 64 65 66 | 69 6e 65 20 56 50 41 52 |..9.#def|ine VPAR|
|00001c10| 54 20 09 09 09 09 31 30 | 0d 23 64 65 66 69 6e 65 |T ....10|.#define|
|00001c20| 20 56 4b 49 4e 44 5f 4d | 41 53 4b 20 09 09 09 30 | VKIND_M|ASK ...0|
|00001c30| 78 30 30 30 31 0d 23 64 | 65 66 69 6e 65 20 56 52 |x0001.#d|efine VR|
|00001c40| 45 43 54 5f 4d 41 53 4b | 20 09 09 09 30 78 30 30 |ECT_MASK| ...0x00|
|00001c50| 30 32 0d 23 64 65 66 69 | 6e 65 20 56 52 41 4e 4b |02.#defi|ne VRANK|
|00001c60| 5f 4d 41 53 4b 20 09 09 | 09 30 78 30 30 30 34 0d |_MASK ..|.0x0004.|
|00001c70| 23 64 65 66 69 6e 65 20 | 56 46 4c 41 47 53 5f 4d |#define |VFLAGS_M|
|00001c80| 41 53 4b 20 09 09 30 78 | 30 30 30 38 0d 23 64 65 |ASK ..0x|0008.#de|
|00001c90| 66 69 6e 65 20 56 56 41 | 52 49 41 4e 54 5f 4d 41 |fine VVA|RIANT_MA|
|00001ca0| 53 4b 20 09 09 30 78 30 | 30 31 30 0d 23 64 65 66 |SK ..0x0|010.#def|
|00001cb0| 69 6e 65 20 56 43 54 4c | 43 4e 54 5f 4d 41 53 4b |ine VCTL|CNT_MASK|
|00001cc0| 20 09 09 30 78 30 30 32 | 30 0d 23 64 65 66 69 6e | ..0x002|0.#defin|
|00001cd0| 65 20 56 54 49 54 4c 45 | 5f 4d 41 53 4b 20 09 09 |e VTITLE|_MASK ..|
|00001ce0| 30 78 30 30 34 30 0d 23 | 64 65 66 69 6e 65 20 56 |0x0040.#|define V|
|00001cf0| 49 54 45 4d 43 4e 54 5f | 4d 41 53 4b 20 09 09 30 |ITEMCNT_|MASK ..0|
|00001d00| 78 30 30 38 30 0d 23 64 | 65 66 69 6e 65 20 56 50 |x0080.#d|efine VP|
|00001d10| 41 52 54 5f 4d 41 53 4b | 20 09 09 09 30 78 30 31 |ART_MASK| ...0x01|
|00001d20| 30 30 0d 23 64 65 66 69 | 6e 65 20 56 41 4c 4c 5f |00.#defi|ne VALL_|
|00001d30| 57 5f 4d 41 53 4b 20 09 | 09 30 78 30 30 37 46 0d |W_MASK .|.0x007F.|
|00001d40| 23 64 65 66 69 6e 65 20 | 56 41 4c 4c 5f 44 5f 4d |#define |VALL_D_M|
|00001d50| 41 53 4b 20 09 09 30 78 | 30 30 46 46 0d 23 64 65 |ASK ..0x|00FF.#de|
|00001d60| 66 69 6e 65 20 4d 57 44 | 5f 54 49 54 4c 45 5f 4c |fine MWD|_TITLE_L|
|00001d70| 45 4e 20 09 09 36 34 0d | 23 64 65 66 69 6e 65 20 |EN ..64.|#define |
|00001d80| 55 4e 53 50 45 43 49 46 | 49 45 44 5f 52 41 4e 4b |UNSPECIF|IED_RANK|
|00001d90| 09 28 2d 31 29 0d 0d 74 | 79 70 65 64 65 66 20 50 |.(-1)..t|ypedef P|
|00001da0| 6f 69 6e 74 20 53 65 6e | 64 46 69 6e 64 57 69 6e |oint Sen|dFindWin|
|00001db0| 64 6f 77 50 61 72 61 6d | 3b 09 2f 2a 20 70 6f 69 |dowParam|;./* poi|
|00001dc0| 6e 74 20 74 6f 20 74 65 | 73 74 2c 20 69 6e 20 67 |nt to te|st, in g|
|00001dd0| 6c 6f 62 61 6c 20 63 6f | 6f 72 64 73 20 2a 2f 0d |lobal co|ords */.|
|00001de0| 74 79 70 65 64 65 66 20 | 53 65 6e 64 46 69 6e 64 |typedef |SendFind|
|00001df0| 57 69 6e 64 6f 77 50 61 | 72 61 6d 20 2a 53 65 6e |WindowPa|ram *Sen|
|00001e00| 64 46 69 6e 64 57 69 6e | 64 6f 77 50 61 72 61 6d |dFindWin|dowParam|
|00001e10| 50 74 72 3b 0d 0d 74 79 | 70 65 64 65 66 20 73 68 |Ptr;..ty|pedef sh|
|00001e20| 6f 72 74 20 2a 44 57 69 | 6e 64 52 65 71 50 74 72 |ort *DWi|ndReqPtr|
|00001e30| 3b 0d 0d 2f 2a 20 54 68 | 69 73 20 69 73 20 74 68 |;../* Th|is is th|
|00001e40| 65 20 66 6f 72 6d 61 74 | 20 6f 66 20 74 68 65 20 |e format| of the |
|00001e50| 6f 75 74 70 75 74 20 62 | 75 66 66 65 72 20 66 6f |output b|uffer fo|
|00001e60| 72 20 53 57 69 6e 64 49 | 6e 66 6f 20 63 61 6c 6c |r SWindI|nfo call|
|00001e70| 73 2e 20 2a 2f 0d 23 69 | 66 20 50 52 41 47 4d 41 |s. */.#i|f PRAGMA|
|00001e80| 5f 41 4c 49 47 4e 5f 53 | 55 50 50 4f 52 54 45 44 |_ALIGN_S|UPPORTED|
|00001e90| 0d 23 70 72 61 67 6d 61 | 20 6f 70 74 69 6f 6e 73 |.#pragma| options|
|00001ea0| 20 61 6c 69 67 6e 3d 6d | 61 63 36 38 6b 0d 23 65 | align=m|ac68k.#e|
|00001eb0| 6e 64 69 66 0d 73 74 72 | 75 63 74 20 4d 6f 6c 65 |ndif.str|uct Mole|
|00001ec0| 57 69 6e 64 6f 77 44 65 | 73 63 72 69 70 74 6f 72 |WindowDe|scriptor|
|00001ed0| 20 7b 0d 09 73 68 6f 72 | 74 20 76 61 6c 69 64 46 | {..shor|t validF|
|00001ee0| 6c 61 67 73 3b 09 09 2f | 2a 20 77 68 69 63 68 20 |lags;../|* which |
|00001ef0| 6f 66 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |of the f|ollowing|
|00001f00| 20 68 61 76 65 20 76 61 | 6c 69 64 20 64 61 74 61 | have va|lid data|
|00001f10| 20 2a 2f 0d 09 73 68 6f | 72 74 20 77 69 6e 64 6f | */..sho|rt windo|
|00001f20| 77 4b 69 6e 64 3b 09 09 | 2f 2a 20 61 73 20 69 6e |wKind;..|/* as in|
|00001f30| 20 77 69 6e 64 6f 77 20 | 72 65 63 6f 72 64 20 2d | window |record -|
|00001f40| 20 73 74 61 6e 64 61 72 | 64 2c 20 64 69 61 6c 6f | standar|d, dialo|
|00001f50| 67 2c 20 73 79 73 74 65 | 6d 2c 20 61 6c 65 72 74 |g, syste|m, alert|
|00001f60| 20 2a 2f 0d 09 52 65 63 | 74 20 70 6f 72 74 52 65 | */..Rec|t portRe|
|00001f70| 63 74 3b 09 09 09 2f 2a | 20 61 73 20 69 6e 20 77 |ct;.../*| as in w|
|00001f80| 69 6e 64 6f 77 27 73 20 | 67 72 61 66 70 6f 72 74 |indow's |grafport|
|00001f90| 20 2a 2f 0d 09 52 65 63 | 74 20 73 74 72 75 63 74 | */..Rec|t struct|
|00001fa0| 52 65 63 74 3b 09 09 2f | 2a 20 62 6f 75 6e 64 61 |Rect;../|* bounda|
|00001fb0| 72 79 20 72 65 63 74 20 | 6f 66 20 73 74 72 75 63 |ry rect |of struc|
|00001fc0| 74 20 72 67 6e 20 2d 20 | 67 6c 6f 62 61 6c 20 63 |t rgn - |global c|
|00001fd0| 6f 6f 72 64 73 20 2a 2f | 0d 09 52 65 63 74 20 63 |oords */|..Rect c|
|00001fe0| 6f 6e 74 65 6e 74 52 65 | 63 74 3b 09 09 2f 2a 20 |ontentRe|ct;../* |
|00001ff0| 62 6f 75 6e 64 61 72 79 | 20 72 65 63 74 20 6f 66 |boundary| rect of|
|00002000| 20 63 6f 6e 74 65 6e 74 | 20 72 65 67 69 6f 6e 20 | content| region |
|00002010| 2d 20 67 6c 6f 62 61 6c | 20 63 6f 6f 72 64 73 20 |- global| coords |
|00002020| 2a 2f 0d 09 73 68 6f 72 | 74 20 77 69 6e 64 6f 77 |*/..shor|t window|
|00002030| 50 61 72 74 3b 09 09 2f | 2a 20 72 65 74 75 72 6e |Part;../|* return|
|00002040| 65 64 20 62 79 20 73 6f | 6d 65 20 63 61 6c 6c 73 |ed by so|me calls|
|00002050| 20 2a 2f 0d 09 73 68 6f | 72 74 20 77 69 6e 64 6f | */..sho|rt windo|
|00002060| 77 52 61 6e 6b 3b 09 09 | 2f 2a 20 72 61 6e 6b 20 |wRank;..|/* rank |
|00002070| 69 6e 20 77 69 6e 64 6f | 77 20 6c 69 73 74 2c 20 |in windo|w list, |
|00002080| 31 2d 3e 4e 20 2a 2f 0d | 09 73 68 6f 72 74 20 77 |1->N */.|.short w|
|00002090| 69 6e 64 6f 77 46 6c 61 | 67 73 3b 09 09 2f 2a 20 |indowFla|gs;../* |
|000020a0| 76 69 73 69 62 6c 65 2c | 20 68 69 6c 69 74 65 64 |visible,| hilited|
|000020b0| 2c 20 67 6f 2d 41 77 61 | 79 2c 20 73 70 61 72 65 |, go-Awa|y, spare|
|000020c0| 20 2a 2f 0d 09 73 68 6f | 72 74 20 77 69 6e 64 6f | */..sho|rt windo|
|000020d0| 77 56 61 72 69 61 6e 74 | 3b 09 2f 2a 20 76 61 72 |wVariant|;./* var|
|000020e0| 69 61 74 69 6f 6e 20 63 | 6f 64 65 20 65 78 74 72 |iation c|ode extr|
|000020f0| 61 63 74 65 64 20 66 72 | 6f 6d 20 68 69 67 68 20 |acted fr|om high |
|00002100| 62 79 74 65 20 6f 66 20 | 77 69 6e 64 6f 77 20 64 |byte of |window d|
|00002110| 65 66 70 72 6f 63 20 68 | 61 6e 64 6c 65 20 2a 2f |efproc h|andle */|
|00002120| 0d 09 73 68 6f 72 74 20 | 63 6f 6e 74 72 6f 6c 43 |..short |controlC|
|00002130| 6f 75 6e 74 3b 09 09 2f | 2a 20 68 6f 77 20 6d 61 |ount;../|* how ma|
|00002140| 6e 79 20 63 6f 6e 74 72 | 6f 6c 73 20 69 6e 20 74 |ny contr|ols in t|
|00002150| 68 65 20 63 6f 6e 74 72 | 6f 6c 20 6c 69 73 74 20 |he contr|ol list |
|00002160| 2a 2f 0d 09 73 68 6f 72 | 74 20 6e 75 6d 49 74 65 |*/..shor|t numIte|
|00002170| 6d 73 3b 09 09 09 2f 2a | 20 6e 75 6d 62 65 72 20 |ms;.../*| number |
|00002180| 6f 66 20 69 74 65 6d 73 | 20 69 6e 20 69 74 65 6d |of items| in item|
|00002190| 20 6c 69 73 74 20 2a 2f | 0d 09 2f 2a 20 20 0d 09 | list */|../* ..|
|000021a0| 7c 09 54 68 65 20 74 69 | 74 6c 65 20 66 69 65 6c ||.The ti|tle fiel|
|000021b0| 64 20 65 69 74 68 65 72 | 20 68 61 73 20 61 20 70 |d either| has a p|
|000021c0| 6f 69 6e 74 65 72 20 74 | 6f 20 74 68 65 20 77 69 |ointer t|o the wi|
|000021d0| 6e 64 6f 77 20 74 69 74 | 6c 65 20 61 73 20 61 20 |ndow tit|le as a |
|000021e0| 70 61 73 63 61 6c 20 73 | 74 72 69 6e 67 2c 0d 09 |pascal s|tring,..|
|000021f0| 7c 09 6f 72 20 74 68 65 | 20 74 65 78 74 20 6f 66 ||.or the| text of|
|00002200| 20 74 68 65 20 77 69 6e | 64 6f 77 20 74 69 74 6c | the win|dow titl|
|00002210| 65 20 65 78 74 65 6e 64 | 69 6e 67 20 6f 66 66 20 |e extend|ing off |
|00002220| 69 6e 74 6f 20 74 68 65 | 20 62 75 66 66 65 72 20 |into the| buffer |
|00002230| 0d 09 2a 2f 0d 09 75 6e | 69 6f 6e 20 7b 09 09 09 |..*/..un|ion {...|
|00002240| 09 09 09 09 09 0d 09 09 | 75 6e 73 69 67 6e 65 64 |........|unsigned|
|00002250| 20 63 68 61 72 09 2a 74 | 65 78 74 5f 70 74 72 3b | char.*t|ext_ptr;|
|00002260| 0d 09 09 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |...unsig|ned char|
|00002270| 09 74 65 78 74 5b 32 35 | 36 5d 3b 0d 09 7d 20 77 |.text[25|6];..} w|
|00002280| 69 6e 64 6f 77 54 69 74 | 6c 65 3b 0d 7d 3b 0d 23 |indowTit|le;.};.#|
|00002290| 69 66 20 50 52 41 47 4d | 41 5f 41 4c 49 47 4e 5f |if PRAGM|A_ALIGN_|
|000022a0| 53 55 50 50 4f 52 54 45 | 44 0d 23 70 72 61 67 6d |SUPPORTE|D.#pragm|
|000022b0| 61 20 6f 70 74 69 6f 6e | 73 20 61 6c 69 67 6e 3d |a option|s align=|
|000022c0| 72 65 73 65 74 0d 23 65 | 6e 64 69 66 0d 0d 74 79 |reset.#e|ndif..ty|
|000022d0| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 4d 6f 6c |pedef st|ruct Mol|
|000022e0| 65 57 69 6e 64 6f 77 44 | 65 73 63 72 69 70 74 6f |eWindowD|escripto|
|000022f0| 72 20 4d 6f 6c 65 57 69 | 6e 64 6f 77 44 65 73 63 |r MoleWi|ndowDesc|
|00002300| 72 69 70 74 6f 72 3b 0d | 74 79 70 65 64 65 66 20 |riptor;.|typedef |
|00002310| 4d 6f 6c 65 57 69 6e 64 | 6f 77 44 65 73 63 72 69 |MoleWind|owDescri|
|00002320| 70 74 6f 72 20 2a 4d 6f | 6c 65 57 44 65 73 63 50 |ptor *Mo|leWDescP|
|00002330| 74 72 3b 0d 0d 0d 2f 2a | 20 2d 2d 2d 2d 2d 2d 2d |tr;.../*| -------|
|00002340| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 20 43 6f 6e 74 72 |--------|-- Contr|
|00002350| 6f 6c 20 72 65 6c 61 74 | 65 64 20 64 61 74 61 20 |ol relat|ed data |
|00002360| 73 74 72 75 63 74 75 72 | 65 73 20 2d 2d 2d 2d 2d |structur|es -----|
|00002370| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 20 |--------|------- |
|00002380| 2a 2f 0d 0d 23 64 65 66 | 69 6e 65 20 56 43 57 49 |*/..#def|ine VCWI|
|00002390| 4e 44 4f 57 20 09 09 09 | 30 0d 23 64 65 66 69 6e |NDOW ...|0.#defin|
|000023a0| 65 20 56 43 52 45 43 54 | 20 09 09 09 09 31 0d 23 |e VCRECT| ....1.#|
|000023b0| 64 65 66 69 6e 65 20 56 | 43 56 41 4c 55 45 20 09 |define V|CVALUE .|
|000023c0| 09 09 32 0d 23 64 65 66 | 69 6e 65 20 56 43 4d 49 |..2.#def|ine VCMI|
|000023d0| 4e 20 09 09 09 09 33 0d | 23 64 65 66 69 6e 65 20 |N ....3.|#define |
|000023e0| 56 43 4d 41 58 20 09 09 | 09 09 34 0d 23 64 65 66 |VCMAX ..|..4.#def|
|000023f0| 69 6e 65 20 56 43 48 49 | 4c 49 54 45 09 09 09 35 |ine VCHI|LITE...5|
|00002400| 0d 23 64 65 66 69 6e 65 | 20 56 43 50 41 52 54 20 |.#define| VCPART |
|00002410| 09 09 09 09 36 0d 23 64 | 65 66 69 6e 65 20 56 43 |....6.#d|efine VC|
|00002420| 52 41 4e 4b 20 09 09 09 | 09 37 0d 23 64 65 66 69 |RANK ...|.7.#defi|
|00002430| 6e 65 20 56 43 54 49 54 | 4c 45 20 09 09 09 38 0d |ne VCTIT|LE ...8.|
|00002440| 23 64 65 66 69 6e 65 20 | 56 43 57 49 4e 44 4f 57 |#define |VCWINDOW|
|00002450| 52 41 4e 4b 5f 4d 41 53 | 4b 09 30 78 30 30 30 31 |RANK_MAS|K.0x0001|
|00002460| 0d 23 64 65 66 69 6e 65 | 20 56 43 52 45 43 54 5f |.#define| VCRECT_|
|00002470| 4d 41 53 4b 09 09 09 30 | 78 30 30 30 32 0d 23 64 |MASK...0|x0002.#d|
|00002480| 65 66 69 6e 65 20 56 43 | 56 41 4c 55 45 5f 4d 41 |efine VC|VALUE_MA|
|00002490| 53 4b 09 09 30 78 30 30 | 30 34 0d 23 64 65 66 69 |SK..0x00|04.#defi|
|000024a0| 6e 65 20 56 43 4d 49 4e | 5f 4d 41 53 4b 09 09 09 |ne VCMIN|_MASK...|
|000024b0| 30 78 30 30 30 38 0d 23 | 64 65 66 69 6e 65 20 56 |0x0008.#|define V|
|000024c0| 43 4d 41 58 5f 4d 41 53 | 4b 09 09 09 30 78 30 30 |CMAX_MAS|K...0x00|
|000024d0| 31 30 0d 23 64 65 66 69 | 6e 65 20 56 43 48 49 4c |10.#defi|ne VCHIL|
|000024e0| 49 54 45 5f 4d 41 53 4b | 09 09 30 78 30 30 32 30 |ITE_MASK|..0x0020|
|000024f0| 0d 23 64 65 66 69 6e 65 | 20 56 43 50 41 52 54 5f |.#define| VCPART_|
|00002500| 4d 41 53 4b 09 09 09 30 | 78 30 30 34 30 0d 23 64 |MASK...0|x0040.#d|
|00002510| 65 66 69 6e 65 20 56 43 | 52 41 4e 4b 5f 4d 41 53 |efine VC|RANK_MAS|
|00002520| 4b 09 09 09 30 78 30 30 | 38 30 0d 23 64 65 66 69 |K...0x00|80.#defi|
|00002530| 6e 65 20 56 43 56 41 52 | 49 41 4e 54 5f 4d 41 53 |ne VCVAR|IANT_MAS|
|00002540| 4b 09 09 30 78 30 31 30 | 30 0d 23 64 65 66 69 6e |K..0x010|0.#defin|
|00002550| 65 20 56 43 54 49 54 4c | 45 5f 4d 41 53 4b 09 09 |e VCTITL|E_MASK..|
|00002560| 30 78 30 32 30 30 0d 23 | 64 65 66 69 6e 65 20 56 |0x0200.#|define V|
|00002570| 41 4c 4c 5f 43 5f 4d 41 | 53 4b 09 09 09 30 78 30 |ALL_C_MA|SK...0x0|
|00002580| 33 46 46 0d 0d 2f 2a 20 | 73 74 61 6e 64 61 72 64 |3FF../* |standard|
|00002590| 20 43 44 45 46 20 49 44 | 73 20 2a 2f 0d 23 64 65 | CDEF ID|s */.#de|
|000025a0| 66 69 6e 65 20 50 4f 50 | 55 50 5f 43 44 45 46 20 |fine POP|UP_CDEF |
|000025b0| 36 33 0d 0d 74 79 70 65 | 64 65 66 20 50 6f 69 6e |63..type|def Poin|
|000025c0| 74 20 53 65 6e 64 46 69 | 6e 64 43 6f 6e 74 72 6f |t SendFi|ndContro|
|000025d0| 6c 50 61 72 61 6d 3b 09 | 2f 2a 20 70 6f 69 6e 74 |lParam;.|/* point|
|000025e0| 20 74 6f 20 74 65 73 74 | 2c 20 69 6e 20 67 6c 6f | to test|, in glo|
|000025f0| 62 61 6c 20 63 6f 6f 72 | 64 73 20 2a 2f 0d 74 79 |bal coor|ds */.ty|
|00002600| 70 65 64 65 66 20 53 65 | 6e 64 46 69 6e 64 43 6f |pedef Se|ndFindCo|
|00002610| 6e 74 72 6f 6c 50 61 72 | 61 6d 20 2a 53 65 6e 64 |ntrolPar|am *Send|
|00002620| 46 69 6e 64 43 6f 6e 74 | 72 6f 6c 50 61 72 61 6d |FindCont|rolParam|
|00002630| 50 74 72 3b 0d 0d 2f 2a | 20 54 68 69 73 20 69 73 |Ptr;../*| This is|
|00002640| 20 74 68 65 20 66 6f 72 | 6d 61 74 20 6f 66 20 74 | the for|mat of t|
|00002650| 68 65 20 69 6e 70 75 74 | 20 62 75 66 66 65 72 20 |he input| buffer |
|00002660| 66 6f 72 20 53 43 74 6c | 49 6e 66 6f 20 63 61 6c |for SCtl|Info cal|
|00002670| 6c 73 2e 20 2a 2f 0d 23 | 69 66 20 50 52 41 47 4d |ls. */.#|if PRAGM|
|00002680| 41 5f 41 4c 49 47 4e 5f | 53 55 50 50 4f 52 54 45 |A_ALIGN_|SUPPORTE|
|00002690| 44 0d 23 70 72 61 67 6d | 61 20 6f 70 74 69 6f 6e |D.#pragm|a option|
|000026a0| 73 20 61 6c 69 67 6e 3d | 6d 61 63 36 38 6b 0d 23 |s align=|mac68k.#|
|000026b0| 65 6e 64 69 66 0d 73 74 | 72 75 63 74 20 53 65 6e |endif.st|ruct Sen|
|000026c0| 64 43 6f 6e 74 72 6f 6c | 49 6e 66 6f 50 61 72 61 |dControl|InfoPara|
|000026d0| 6d 73 20 7b 20 0d 09 73 | 68 6f 72 74 20 63 6f 6e |ms { ..s|hort con|
|000026e0| 74 72 6f 6c 5f 72 61 6e | 6b 3b 09 09 2f 2a 20 72 |trol_ran|k;../* r|
|000026f0| 61 6e 6b 20 69 6e 20 63 | 6f 6e 74 72 6f 6c 20 6c |ank in c|ontrol l|
|00002700| 69 73 74 20 2a 2f 0d 09 | 73 68 6f 72 74 20 77 69 |ist */..|short wi|
|00002710| 6e 64 6f 77 5f 72 61 6e | 6b 3b 09 09 2f 2a 20 72 |ndow_ran|k;../* r|
|00002720| 61 6e 6b 20 6f 66 20 6f | 77 6e 69 6e 67 20 77 69 |ank of o|wning wi|
|00002730| 6e 64 6f 77 20 61 6d 6f | 6e 67 73 74 20 76 69 73 |ndow amo|ngst vis|
|00002740| 69 62 6c 65 20 77 69 6e | 64 6f 77 73 20 2a 2f 0d |ible win|dows */.|
|00002750| 7d 3b 0d 23 69 66 20 50 | 52 41 47 4d 41 5f 41 4c |};.#if P|RAGMA_AL|
|00002760| 49 47 4e 5f 53 55 50 50 | 4f 52 54 45 44 0d 23 70 |IGN_SUPP|ORTED.#p|
|00002770| 72 61 67 6d 61 20 6f 70 | 74 69 6f 6e 73 20 61 6c |ragma op|tions al|
|00002780| 69 67 6e 3d 72 65 73 65 | 74 0d 23 65 6e 64 69 66 |ign=rese|t.#endif|
|00002790| 0d 0d 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |..typede|f struct|
|000027a0| 20 53 65 6e 64 43 6f 6e | 74 72 6f 6c 49 6e 66 6f | SendCon|trolInfo|
|000027b0| 50 61 72 61 6d 73 20 53 | 65 6e 64 43 6f 6e 74 72 |Params S|endContr|
|000027c0| 6f 6c 49 6e 66 6f 50 61 | 72 61 6d 73 3b 0d 74 79 |olInfoPa|rams;.ty|
|000027d0| 70 65 64 65 66 20 53 65 | 6e 64 43 6f 6e 74 72 6f |pedef Se|ndContro|
|000027e0| 6c 49 6e 66 6f 50 61 72 | 61 6d 73 20 2a 53 65 6e |lInfoPar|ams *Sen|
|000027f0| 64 43 74 6c 49 6e 66 6f | 50 61 72 61 6d 73 50 74 |dCtlInfo|ParamsPt|
|00002800| 72 3b 0d 0d 2f 2a 20 54 | 68 69 73 20 69 73 20 74 |r;../* T|his is t|
|00002810| 68 65 20 66 6f 72 6d 61 | 74 20 6f 66 20 74 68 65 |he forma|t of the|
|00002820| 20 6f 75 74 70 75 74 20 | 62 75 66 66 65 72 20 66 | output |buffer f|
|00002830| 6f 72 20 53 43 74 6c 49 | 6e 66 6f 20 63 61 6c 6c |or SCtlI|nfo call|
|00002840| 73 2e 20 2a 2f 0d 23 69 | 66 20 50 52 41 47 4d 41 |s. */.#i|f PRAGMA|
|00002850| 5f 41 4c 49 47 4e 5f 53 | 55 50 50 4f 52 54 45 44 |_ALIGN_S|UPPORTED|
|00002860| 0d 23 70 72 61 67 6d 61 | 20 6f 70 74 69 6f 6e 73 |.#pragma| options|
|00002870| 20 61 6c 69 67 6e 3d 6d | 61 63 36 38 6b 0d 23 65 | align=m|ac68k.#e|
|00002880| 6e 64 69 66 0d 73 74 72 | 75 63 74 20 4d 6f 6c 65 |ndif.str|uct Mole|
|00002890| 43 6f 6e 74 72 6f 6c 44 | 65 73 63 72 69 70 74 6f |ControlD|escripto|
|000028a0| 72 20 7b 09 09 09 2f 2a | 20 6d 6f 6c 65 20 63 6f |r {.../*| mole co|
|000028b0| 6e 74 72 6f 6c 20 64 65 | 73 63 72 69 70 74 6f 72 |ntrol de|scriptor|
|000028c0| 20 2a 2f 0d 09 73 68 6f | 72 74 20 76 61 6c 69 64 | */..sho|rt valid|
|000028d0| 46 6c 61 67 73 3b 09 09 | 2f 2a 20 77 68 69 63 68 |Flags;..|/* which|
|000028e0| 20 6f 66 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | of the |followin|
|000028f0| 67 20 68 61 76 65 20 76 | 61 6c 69 64 20 64 61 74 |g have v|alid dat|
|00002900| 61 20 2a 2f 0d 09 73 68 | 6f 72 74 20 6f 77 6e 65 |a */..sh|ort owne|
|00002910| 72 5f 72 61 6e 6b 3b 09 | 09 2f 2a 20 72 61 6e 6b |r_rank;.|./* rank|
|00002920| 20 6f 66 20 6f 77 6e 69 | 6e 67 20 77 69 6e 64 6f | of owni|ng windo|
|00002930| 77 20 61 6d 6f 6e 67 73 | 74 20 76 69 73 69 62 6c |w amongs|t visibl|
|00002940| 65 20 77 69 6e 64 6f 77 | 73 20 2a 2f 0d 09 52 65 |e window|s */..Re|
|00002950| 63 74 20 63 74 6c 52 65 | 63 74 3b 09 09 09 2f 2a |ct ctlRe|ct;.../*|
|00002960| 20 54 68 65 20 63 74 6c | 20 66 69 6c 65 64 73 20 | The ctl| fileds |
|00002970| 61 72 65 20 63 6f 70 69 | 65 64 20 66 72 6f 6d 20 |are copi|ed from |
|00002980| 74 68 65 20 2a 2f 0d 09 | 73 68 6f 72 74 20 63 74 |the */..|short ct|
|00002990| 6c 56 61 6c 75 65 3b 09 | 09 09 2f 2a 20 20 63 6f |lValue;.|../* co|
|000029a0| 6e 74 72 6f 6c 20 72 65 | 63 6f 72 64 20 2a 2f 0d |ntrol re|cord */.|
|000029b0| 09 73 68 6f 72 74 20 63 | 74 6c 4d 69 6e 3b 0d 09 |.short c|tlMin;..|
|000029c0| 73 68 6f 72 74 20 63 74 | 6c 4d 61 78 3b 0d 09 73 |short ct|lMax;..s|
|000029d0| 68 6f 72 74 20 63 74 6c | 48 69 6c 69 74 65 3b 0d |hort ctl|Hilite;.|
|000029e0| 09 73 68 6f 72 74 20 70 | 61 72 74 3b 09 09 09 09 |.short p|art;....|
|000029f0| 2f 2a 20 66 69 6c 6c 65 | 64 20 69 6e 20 6f 6e 20 |/* fille|d in on |
|00002a00| 73 6f 6d 65 20 63 61 6c | 6c 73 20 2a 2f 0d 09 73 |some cal|ls */..s|
|00002a10| 68 6f 72 74 20 63 74 6c | 52 61 6e 6b 3b 09 09 09 |hort ctl|Rank;...|
|00002a20| 2f 2a 20 72 61 6e 6b 20 | 69 6e 20 6f 77 6e 69 6e |/* rank |in ownin|
|00002a30| 67 20 77 69 6e 64 6f 77 | 27 73 20 63 6f 6e 74 72 |g window|'s contr|
|00002a40| 6f 6c 20 4c 69 73 74 20 | 2a 2f 0d 09 73 68 6f 72 |ol List |*/..shor|
|00002a50| 74 20 63 74 6c 44 65 66 | 49 44 3b 09 09 09 2f 2a |t ctlDef|ID;.../*|
|00002a60| 20 76 61 72 69 61 74 69 | 6f 6e 20 63 6f 64 65 20 | variati|on code |
|00002a70| 66 72 6f 6d 20 64 65 66 | 20 70 72 6f 63 20 68 61 |from def| proc ha|
|00002a80| 6e 64 6c 65 20 2a 2f 0d | 09 2f 2a 20 0d 09 7c 20 |ndle */.|./* ..| |
|00002a90| 09 54 68 65 20 63 74 6c | 44 61 74 61 20 66 69 65 |.The ctl|Data fie|
|00002aa0| 6c 64 20 77 69 6c 6c 20 | 68 61 76 65 20 64 69 66 |ld will |have dif|
|00002ab0| 66 65 72 65 6e 74 20 69 | 6e 66 6f 20 64 65 70 65 |ferent i|nfo depe|
|00002ac0| 6e 64 69 6e 67 20 6f 6e | 20 74 68 65 20 63 74 6c |nding on| the ctl|
|00002ad0| 44 65 66 49 44 2e 0d 09 | 7c 20 20 09 28 46 6f 72 |DefID...|| .(For|
|00002ae0| 20 62 61 63 6b 77 61 72 | 64 20 63 6f 6d 70 61 74 | backwar|d compat|
|00002af0| 69 62 69 6c 69 74 79 2c | 20 69 74 20 63 61 6e 27 |ibility,| it can'|
|00002b00| 74 20 65 78 63 65 65 64 | 20 27 73 68 6f 72 74 27 |t exceed| 'short'|
|00002b10| 20 69 6e 20 6c 65 6e 67 | 74 68 2c 20 6f 72 20 65 | in leng|th, or e|
|00002b20| 6c 73 65 20 73 75 62 73 | 65 71 75 65 6e 74 0d 09 |lse subs|equent..|
|00002b30| 7c 20 20 20 66 69 65 6c | 64 20 6f 66 66 73 65 74 || fiel|d offset|
|00002b40| 73 20 63 68 61 6e 67 65 | 2e 29 20 0d 09 2a 2f 0d |s change|.) ..*/.|
|00002b50| 09 75 6e 69 6f 6e 20 7b | 0d 09 09 73 68 6f 72 74 |.union {|...short|
|00002b60| 09 09 09 09 70 6f 70 75 | 70 4d 65 6e 75 49 44 3b |....popu|pMenuID;|
|00002b70| 09 09 2f 2a 20 72 65 73 | 6f 75 72 63 65 20 49 44 |../* res|ource ID|
|00002b80| 20 6f 66 20 70 6f 70 75 | 70 20 6d 65 6e 75 20 2a | of popu|p menu *|
|00002b90| 2f 0d 09 7d 20 63 74 6c | 44 61 74 61 3b 09 0d 09 |/..} ctl|Data;...|
|00002ba0| 2f 2a 20 0d 09 7c 09 54 | 68 65 20 74 69 74 6c 65 |/* ..|.T|he title|
|00002bb0| 20 66 69 65 6c 64 20 65 | 69 74 68 65 72 20 68 61 | field e|ither ha|
|00002bc0| 73 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |s a poin|ter to t|
|00002bd0| 68 65 20 63 6f 6e 74 72 | 6f 6c 20 74 69 74 6c 65 |he contr|ol title|
|00002be0| 20 61 73 20 61 20 70 61 | 73 63 61 6c 20 73 74 72 | as a pa|scal str|
|00002bf0| 69 6e 67 2c 0d 09 7c 09 | 6f 72 20 74 68 65 20 74 |ing,..|.|or the t|
|00002c00| 65 78 74 20 6f 66 20 74 | 68 65 20 63 6f 6e 74 72 |ext of t|he contr|
|00002c10| 6f 6c 20 74 69 74 6c 65 | 20 65 78 74 65 6e 64 69 |ol title| extendi|
|00002c20| 6e 67 20 6f 66 66 20 69 | 6e 74 6f 20 74 68 65 20 |ng off i|nto the |
|00002c30| 62 75 66 66 65 72 0d 09 | 2a 2f 0d 09 75 6e 69 6f |buffer..|*/..unio|
|00002c40| 6e 20 7b 0d 09 09 75 6e | 73 69 67 6e 65 64 20 63 |n {...un|signed c|
|00002c50| 68 61 72 20 09 09 2a 74 | 65 78 74 5f 70 74 72 3b |har ..*t|ext_ptr;|
|00002c60| 0d 09 09 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |...unsig|ned char|
|00002c70| 09 09 74 65 78 74 5b 32 | 35 36 5d 3b 0d 09 7d 20 |..text[2|56];..} |
|00002c80| 63 74 6c 54 69 74 6c 65 | 3b 0d 09 2f 2a 20 0d 09 |ctlTitle|;../* ..|
|00002c90| 7c 09 4e 65 77 20 66 69 | 65 6c 64 20 66 6f 72 20 ||.New fi|eld for |
|00002ca0| 76 65 72 73 69 6f 6e 20 | 32 2e 30 2e 20 54 68 69 |version |2.0. Thi|
|00002cb0| 73 20 66 69 65 6c 64 20 | 69 73 20 6f 6e 6c 79 20 |s field |is only |
|00002cc0| 76 61 6c 69 64 20 69 6e | 20 56 69 72 74 75 61 6c |valid in| Virtual|
|00002cd0| 20 55 73 65 72 20 74 6f | 20 74 68 65 0d 09 7c 09 | User to| the..|.|
|00002ce0| 63 61 6c 6c 65 72 20 6f | 66 20 4d 6f 6c 65 5f 54 |caller o|f Mole_T|
|00002cf0| 72 61 6e 73 63 65 69 76 | 65 72 2e 20 20 44 75 72 |ransceiv|er. Dur|
|00002d00| 69 6e 67 20 41 54 50 20 | 72 65 73 70 6f 6e 73 65 |ing ATP |response|
|00002d10| 2c 20 74 68 65 20 6d 65 | 6e 75 20 68 61 6e 64 6c |, the me|nu handl|
|00002d20| 65 20 69 73 20 67 6c 75 | 65 64 0d 09 7c 09 6f 6e |e is glu|ed..|.on|
|00002d30| 74 6f 20 74 68 65 20 65 | 6e 64 20 28 79 65 63 63 |to the e|nd (yecc|
|00002d40| 68 29 20 6f 66 20 74 68 | 65 20 63 6f 6e 74 72 6f |h) of th|e contro|
|00002d50| 6c 20 74 69 74 6c 65 20 | 73 74 72 69 6e 67 2e 20 |l title |string. |
|00002d60| 0d 09 2a 2f 0d 09 4d 65 | 6e 75 52 65 66 09 09 09 |..*/..Me|nuRef...|
|00002d70| 09 09 70 6f 70 75 70 4d | 65 6e 75 52 65 66 3b 09 |..popupM|enuRef;.|
|00002d80| 2f 2a 20 76 61 6c 69 64 | 20 69 66 20 74 68 65 72 |/* valid| if ther|
|00002d90| 65 27 73 20 61 20 70 6f | 70 75 70 20 6d 65 6e 75 |e's a po|pup menu|
|00002da0| 20 2a 2f 0d 7d 3b 0d 23 | 69 66 20 50 52 41 47 4d | */.};.#|if PRAGM|
|00002db0| 41 5f 41 4c 49 47 4e 5f | 53 55 50 50 4f 52 54 45 |A_ALIGN_|SUPPORTE|
|00002dc0| 44 0d 23 70 72 61 67 6d | 61 20 6f 70 74 69 6f 6e |D.#pragm|a option|
|00002dd0| 73 20 61 6c 69 67 6e 3d | 72 65 73 65 74 0d 23 65 |s align=|reset.#e|
|00002de0| 6e 64 69 66 0d 0d 74 79 | 70 65 64 65 66 20 73 74 |ndif..ty|pedef st|
|00002df0| 72 75 63 74 20 4d 6f 6c | 65 43 6f 6e 74 72 6f 6c |ruct Mol|eControl|
|00002e00| 44 65 73 63 72 69 70 74 | 6f 72 20 4d 6f 6c 65 43 |Descript|or MoleC|
|00002e10| 6f 6e 74 72 6f 6c 44 65 | 73 63 72 69 70 74 6f 72 |ontrolDe|scriptor|
|00002e20| 3b 0d 74 79 70 65 64 65 | 66 20 4d 6f 6c 65 43 6f |;.typede|f MoleCo|
|00002e30| 6e 74 72 6f 6c 44 65 73 | 63 72 69 70 74 6f 72 20 |ntrolDes|criptor |
|00002e40| 2a 4d 6f 6c 65 43 44 65 | 73 63 50 74 72 3b 0d 0d |*MoleCDe|scPtr;..|
|00002e50| 0d 2f 2a 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |./* ----|--------|
|00002e60| 2d 2d 2d 2d 2d 20 44 69 | 61 6c 6f 67 20 72 65 6c |----- Di|alog rel|
|00002e70| 61 74 65 64 20 64 61 74 | 61 20 73 74 72 75 63 74 |ated dat|a struct|
|00002e80| 75 72 65 73 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ures ---|--------|
|00002e90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 20 2a 2f 0d 0d 23 64 |--------|- */..#d|
|00002ea0| 65 66 69 6e 65 20 62 74 | 6e 43 74 72 6c 49 74 65 |efine bt|nCtrlIte|
|00002eb0| 6d 20 34 0d 23 64 65 66 | 69 6e 65 20 63 68 6b 43 |m 4.#def|ine chkC|
|00002ec0| 74 72 6c 49 74 65 6d 20 | 35 0d 23 64 65 66 69 6e |trlItem |5.#defin|
|00002ed0| 65 20 72 61 64 43 74 72 | 6c 49 74 65 6d 20 36 0d |e radCtr|lItem 6.|
|00002ee0| 23 64 65 66 69 6e 65 20 | 72 65 73 43 74 72 6c 49 |#define |resCtrlI|
|00002ef0| 74 65 6d 20 37 0d 0d 23 | 64 65 66 69 6e 65 20 52 |tem 7..#|define R|
|00002f00| 41 4e 4b 5f 4f 46 5f 54 | 48 45 5f 49 4e 56 49 53 |ANK_OF_T|HE_INVIS|
|00002f10| 49 42 4c 45 09 28 2d 32 | 29 0d 2f 2a 20 73 70 65 |IBLE.(-2|)./* spe|
|00002f20| 63 69 61 6c 20 63 6f 6e | 73 74 61 6e 74 20 66 6f |cial con|stant fo|
|00002f30| 72 20 69 74 65 6d 73 20 | 77 68 69 63 68 20 64 6f |r items |which do|
|00002f40| 20 6e 6f 20 66 69 74 20 | 69 6e 74 6f 20 61 6e 79 | no fit |into any|
|00002f50| 20 6f 66 20 74 68 65 20 | 6f 74 68 65 72 20 63 6f | of the |other co|
|00002f60| 6e 74 65 6e 74 20 69 74 | 65 6d 20 63 61 74 65 67 |ntent it|em categ|
|00002f70| 6f 72 69 65 73 20 2a 2f | 0d 23 64 65 66 69 6e 65 |ories */|.#define|
|00002f80| 20 43 55 53 54 4f 4d 5f | 49 54 45 4d 20 09 09 20 | CUSTOM_|ITEM .. |
|00002f90| 09 28 2d 31 29 09 09 0d | 0d 23 69 66 20 50 52 41 |.(-1)...|.#if PRA|
|00002fa0| 47 4d 41 5f 41 4c 49 47 | 4e 5f 53 55 50 50 4f 52 |GMA_ALIG|N_SUPPOR|
|00002fb0| 54 45 44 0d 23 70 72 61 | 67 6d 61 20 6f 70 74 69 |TED.#pra|gma opti|
|00002fc0| 6f 6e 73 20 61 6c 69 67 | 6e 3d 6d 61 63 36 38 6b |ons alig|n=mac68k|
|00002fd0| 0d 23 65 6e 64 69 66 0d | 73 74 72 75 63 74 20 53 |.#endif.|struct S|
|00002fe0| 65 6e 64 44 49 74 65 6d | 49 6e 66 6f 50 61 72 61 |endDItem|InfoPara|
|00002ff0| 6d 73 20 7b 20 0d 09 73 | 68 6f 72 74 20 69 74 65 |ms { ..s|hort ite|
|00003000| 6d 5f 6e 75 6d 3b 09 09 | 09 2f 2a 20 69 6e 64 65 |m_num;..|./* inde|
|00003010| 78 20 69 6e 20 64 69 61 | 6c 6f 67 73 20 69 74 65 |x in dia|logs ite|
|00003020| 6d 20 6c 69 73 74 20 2a | 2f 0d 09 73 68 6f 72 74 |m list *|/..short|
|00003030| 20 77 69 6e 64 6f 77 5f | 72 61 6e 6b 3b 09 09 2f | window_|rank;../|
|00003040| 2a 20 72 61 6e 6b 20 6f | 66 20 6f 77 6e 69 6e 67 |* rank o|f owning|
|00003050| 20 77 69 6e 64 6f 77 20 | 61 6d 6f 6e 67 73 74 20 | window |amongst |
|00003060| 76 69 73 69 62 6c 65 20 | 77 69 6e 64 6f 77 73 20 |visible |windows |
|00003070| 2a 2f 0d 7d 3b 0d 23 69 | 66 20 50 52 41 47 4d 41 |*/.};.#i|f PRAGMA|
|00003080| 5f 41 4c 49 47 4e 5f 53 | 55 50 50 4f 52 54 45 44 |_ALIGN_S|UPPORTED|
|00003090| 0d 23 70 72 61 67 6d 61 | 20 6f 70 74 69 6f 6e 73 |.#pragma| options|
|000030a0| 20 61 6c 69 67 6e 3d 72 | 65 73 65 74 0d 23 65 6e | align=r|eset.#en|
|000030b0| 64 69 66 0d 0d 74 79 70 | 65 64 65 66 20 73 74 72 |dif..typ|edef str|
|000030c0| 75 63 74 20 53 65 6e 64 | 44 49 74 65 6d 49 6e 66 |uct Send|DItemInf|
|000030d0| 6f 50 61 72 61 6d 73 20 | 53 65 6e 64 44 49 74 65 |oParams |SendDIte|
|000030e0| 6d 49 6e 66 6f 50 61 72 | 61 6d 73 3b 0d 74 79 70 |mInfoPar|ams;.typ|
|000030f0| 65 64 65 66 20 53 65 6e | 64 44 49 74 65 6d 49 6e |edef Sen|dDItemIn|
|00003100| 66 6f 50 61 72 61 6d 73 | 20 2a 53 65 6e 64 44 49 |foParams| *SendDI|
|00003110| 74 65 6d 49 6e 66 6f 50 | 74 72 3b 0d 0d 23 69 66 |temInfoP|tr;..#if|
|00003120| 20 50 52 41 47 4d 41 5f | 41 4c 49 47 4e 5f 53 55 | PRAGMA_|ALIGN_SU|
|00003130| 50 50 4f 52 54 45 44 0d | 23 70 72 61 67 6d 61 20 |PPORTED.|#pragma |
|00003140| 6f 70 74 69 6f 6e 73 20 | 61 6c 69 67 6e 3d 6d 61 |options |align=ma|
|00003150| 63 36 38 6b 0d 23 65 6e | 64 69 66 0d 73 74 72 75 |c68k.#en|dif.stru|
|00003160| 63 74 20 4d 6f 6c 65 44 | 49 74 65 6d 49 6e 66 6f |ct MoleD|ItemInfo|
|00003170| 20 7b 20 20 09 09 09 2f | 2a 20 6d 6f 6c 65 20 64 | { .../|* mole d|
|00003180| 69 61 6c 6f 67 20 69 74 | 65 6d 20 69 6e 66 6f 20 |ialog it|em info |
|00003190| 2a 2f 0d 09 52 65 63 74 | 09 09 62 6f 78 3b 09 09 |*/..Rect|..box;..|
|000031a0| 09 09 2f 2a 20 69 74 65 | 6d 20 62 6f 75 6e 64 69 |../* ite|m boundi|
|000031b0| 6e 67 20 62 6f 78 20 2a | 2f 0d 09 6c 6f 6e 67 09 |ng box *|/..long.|
|000031c0| 09 63 74 6c 52 61 6e 6b | 3b 20 09 09 09 2f 2a 20 |.ctlRank|; .../* |
|000031d0| 69 66 20 61 20 63 6f 6e | 74 72 6f 6c 20 2d 20 74 |if a con|trol - t|
|000031e0| 68 65 6e 20 74 68 65 20 | 63 6f 6e 74 72 6f 6c 27 |hen the |control'|
|000031f0| 73 20 72 61 6e 6b 20 69 | 6e 20 74 68 65 20 63 6f |s rank i|n the co|
|00003200| 6e 74 72 6f 6c 20 6c 69 | 73 74 20 2a 2f 0d 09 53 |ntrol li|st */..S|
|00003210| 69 67 6e 65 64 42 79 74 | 65 09 69 74 65 6d 54 79 |ignedByt|e.itemTy|
|00003220| 70 65 3b 09 09 09 2f 2a | 20 69 74 65 6d 20 74 79 |pe;.../*| item ty|
|00003230| 70 65 20 2a 2f 0d 09 42 | 6f 6f 6c 65 61 6e 09 09 |pe */..B|oolean..|
|00003240| 69 74 65 6d 5f 65 6e 61 | 62 6c 65 64 3b 0d 09 42 |item_ena|bled;..B|
|00003250| 6f 6f 6c 65 61 6e 09 09 | 68 61 73 5f 74 65 78 74 |oolean..|has_text|
|00003260| 3b 0d 09 73 68 6f 72 74 | 09 09 6f 77 6e 65 72 5f |;..short|..owner_|
|00003270| 72 61 6e 6b 3b 0d 09 73 | 68 6f 72 74 09 09 69 74 |rank;..s|hort..it|
|00003280| 65 6d 5f 6e 75 6d 3b 0d | 09 2f 2a 20 54 68 65 20 |em_num;.|./* The |
|00003290| 69 74 65 6d 44 61 74 61 | 20 66 69 65 6c 64 20 65 |itemData| field e|
|000032a0| 69 74 68 65 72 20 68 61 | 73 20 61 20 70 6f 69 6e |ither ha|s a poin|
|000032b0| 74 65 72 20 74 6f 20 74 | 68 65 20 63 6f 6e 74 72 |ter to t|he contr|
|000032c0| 6f 6c 20 74 69 74 6c 65 | 20 61 73 20 61 20 70 61 |ol title| as a pa|
|000032d0| 73 63 61 6c 20 73 74 72 | 69 6e 67 2c 0d 09 20 20 |scal str|ing,.. |
|000032e0| 20 6f 72 20 74 68 65 20 | 74 65 78 74 20 6f 66 20 | or the |text of |
|000032f0| 74 68 65 20 63 6f 6e 74 | 72 6f 6c 20 69 74 65 6d |the cont|rol item|
|00003300| 44 61 74 61 20 65 78 74 | 65 6e 64 69 6e 67 20 6f |Data ext|ending o|
|00003310| 66 66 20 69 6e 74 6f 20 | 74 68 65 20 62 75 66 66 |ff into |the buff|
|00003320| 65 72 2c 20 4f 52 20 74 | 68 65 0d 09 20 20 20 73 |er, OR t|he.. s|
|00003330| 68 6f 72 74 20 73 68 6f | 72 74 20 77 68 69 63 68 |hort sho|rt which|
|00003340| 20 69 73 20 74 68 65 20 | 72 65 73 6f 75 72 63 65 | is the |resource|
|00003350| 20 49 44 20 6f 66 20 74 | 68 65 20 69 63 6f 6e 20 | ID of t|he icon |
|00003360| 6f 72 20 70 69 63 74 75 | 72 65 20 61 73 73 6f 63 |or pictu|re assoc|
|00003370| 61 69 74 65 64 20 77 69 | 74 68 0d 09 20 20 20 74 |aited wi|th.. t|
|00003380| 68 65 20 69 74 65 6d 2e | 20 2a 2f 0d 09 75 6e 69 |he item.| */..uni|
|00003390| 6f 6e 20 7b 0d 09 09 75 | 6e 73 69 67 6e 65 64 20 |on {...u|nsigned |
|000033a0| 63 68 61 72 09 74 65 78 | 74 5b 32 35 36 5d 3b 09 |char.tex|t[256];.|
|000033b0| 09 09 2f 2a 20 73 74 61 | 74 69 63 2c 20 65 64 69 |../* sta|tic, edi|
|000033c0| 74 2c 20 6f 72 20 63 6f | 6e 74 72 6f 6c 20 74 69 |t, or co|ntrol ti|
|000033d0| 74 6c 65 20 74 65 78 74 | 20 2a 2f 0d 09 09 75 6e |tle text| */...un|
|000033e0| 73 69 67 6e 65 64 20 63 | 68 61 72 09 2a 69 74 65 |signed c|har.*ite|
|000033f0| 6d 5f 74 65 78 74 5f 70 | 74 72 3b 0d 09 09 73 68 |m_text_p|tr;...sh|
|00003400| 6f 72 74 09 09 09 69 74 | 65 6d 52 65 73 49 44 3b |ort...it|emResID;|
|00003410| 0d 09 7d 20 69 74 65 6d | 44 61 74 61 3b 0d 7d 3b |..} item|Data;.};|
|00003420| 20 0d 23 69 66 20 50 52 | 41 47 4d 41 5f 41 4c 49 | .#if PR|AGMA_ALI|
|00003430| 47 4e 5f 53 55 50 50 4f | 52 54 45 44 0d 23 70 72 |GN_SUPPO|RTED.#pr|
|00003440| 61 67 6d 61 20 6f 70 74 | 69 6f 6e 73 20 61 6c 69 |agma opt|ions ali|
|00003450| 67 6e 3d 72 65 73 65 74 | 0d 23 65 6e 64 69 66 0d |gn=reset|.#endif.|
|00003460| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|00003470| 4d 6f 6c 65 44 49 74 65 | 6d 49 6e 66 6f 20 4d 6f |MoleDIte|mInfo Mo|
|00003480| 6c 65 44 49 74 65 6d 49 | 6e 66 6f 3b 0d 74 79 70 |leDItemI|nfo;.typ|
|00003490| 65 64 65 66 20 4d 6f 6c | 65 44 49 74 65 6d 49 6e |edef Mol|eDItemIn|
|000034a0| 66 6f 20 2a 4d 6f 6c 65 | 44 49 74 65 6d 49 6e 66 |fo *Mole|DItemInf|
|000034b0| 6f 50 74 72 3b 0d 0d 0d | 2f 2a 20 2d 2d 2d 2d 2d |oPtr;...|/* -----|
|000034c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 4d 6f 6c |--------|---- Mol|
|000034d0| 65 20 64 61 74 61 20 62 | 6c 6f 63 6b 20 73 74 72 |e data b|lock str|
|000034e0| 75 63 74 75 72 65 73 20 | 2d 2d 2d 2d 2d 2d 2d 2d |uctures |--------|
|000034f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 2a 2f 0d |--------|---- */.|
|00003500| 0d 23 64 65 66 69 6e 65 | 20 4d 4f 4c 45 5f 44 41 |.#define| MOLE_DA|
|00003510| 54 41 5f 42 4c 4f 43 4b | 53 49 5a 45 20 35 31 32 |TA_BLOCK|SIZE 512|
|00003520| 20 09 09 2f 2a 20 61 20 | 6e 69 63 65 2c 20 61 72 | ../* a |nice, ar|
|00003530| 62 69 74 72 61 72 79 2c | 20 72 6f 75 6e 64 20 6e |bitrary,| round n|
|00003540| 75 6d 62 65 72 20 2a 2f | 0d 23 64 65 66 69 6e 65 |umber */|.#define|
|00003550| 20 41 44 44 49 54 49 4f | 4e 41 4c 5f 4d 45 4e 55 | ADDITIO|NAL_MENU|
|00003560| 5f 49 54 45 4d 5f 44 41 | 54 41 20 35 20 09 2f 2a |_ITEM_DA|TA 5 ./*|
|00003570| 20 62 79 74 65 73 20 69 | 6e 20 61 20 6d 65 6e 75 | bytes i|n a menu|
|00003580| 20 69 74 65 6d 20 73 75 | 62 72 65 63 20 69 6e 20 | item su|brec in |
|00003590| 61 64 64 69 74 69 6f 6e | 20 74 6f 20 0d 09 09 09 |addition| to ....|
|000035a0| 09 09 09 09 09 09 09 74 | 68 65 20 74 65 78 74 20 |.......t|he text |
|000035b0| 6f 66 20 74 68 65 20 6d | 65 6e 75 20 69 74 65 6d |of the m|enu item|
|000035c0| 20 28 64 6f 6e 74 20 61 | 73 6b 2c 20 69 74 73 20 | (dont a|sk, its |
|000035d0| 75 67 6c 79 29 20 2a 2f | 0d 23 69 66 20 50 52 41 |ugly) */|.#if PRA|
|000035e0| 47 4d 41 5f 41 4c 49 47 | 4e 5f 53 55 50 50 4f 52 |GMA_ALIG|N_SUPPOR|
|000035f0| 54 45 44 0d 23 70 72 61 | 67 6d 61 20 6f 70 74 69 |TED.#pra|gma opti|
|00003600| 6f 6e 73 20 61 6c 69 67 | 6e 3d 6d 61 63 36 38 6b |ons alig|n=mac68k|
|00003610| 0d 23 65 6e 64 69 66 0d | 73 74 72 75 63 74 20 4d |.#endif.|struct M|
|00003620| 6f 6c 65 44 61 74 61 42 | 6c 6f 63 6b 20 7b 0d 09 |oleDataB|lock {..|
|00003630| 73 68 6f 72 74 09 62 6c | 6f 63 6b 4c 65 6e 67 74 |short.bl|ockLengt|
|00003640| 68 3b 09 2f 2a 20 62 6c | 6f 63 6b 4c 65 6e 67 74 |h;./* bl|ockLengt|
|00003650| 68 20 2a 2f 0d 09 42 79 | 74 65 09 64 61 74 61 42 |h */..By|te.dataB|
|00003660| 6c 6f 63 6b 5b 4d 4f 4c | 45 5f 44 41 54 41 5f 42 |lock[MOL|E_DATA_B|
|00003670| 4c 4f 43 4b 53 49 5a 45 | 5d 3b 0d 09 2f 2a 20 74 |LOCKSIZE|];../* t|
|00003680| 68 65 20 72 65 74 75 72 | 6e 65 64 20 70 61 63 6b |he retur|ned pack|
|00003690| 65 74 20 77 69 6c 6c 20 | 6f 6e 6c 79 20 62 65 20 |et will |only be |
|000036a0| 61 20 6c 6f 6e 67 20 61 | 73 20 6e 65 65 64 65 64 |a long a|s needed|
|000036b0| 20 74 6f 20 73 65 6e 64 | 20 74 68 65 20 72 65 71 | to send| the req|
|000036c0| 75 65 73 74 65 64 20 64 | 61 74 61 20 2a 2f 0d 7d |uested d|ata */.}|
|000036d0| 3b 0d 23 69 66 20 50 52 | 41 47 4d 41 5f 41 4c 49 |;.#if PR|AGMA_ALI|
|000036e0| 47 4e 5f 53 55 50 50 4f | 52 54 45 44 0d 23 70 72 |GN_SUPPO|RTED.#pr|
|000036f0| 61 67 6d 61 20 6f 70 74 | 69 6f 6e 73 20 61 6c 69 |agma opt|ions ali|
|00003700| 67 6e 3d 72 65 73 65 74 | 0d 23 65 6e 64 69 66 0d |gn=reset|.#endif.|
|00003710| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|00003720| 4d 6f 6c 65 44 61 74 61 | 42 6c 6f 63 6b 20 4d 6f |MoleData|Block Mo|
|00003730| 6c 65 44 61 74 61 42 6c | 6f 63 6b 3b 0d 74 79 70 |leDataBl|ock;.typ|
|00003740| 65 64 65 66 20 4d 6f 6c | 65 44 61 74 61 42 6c 6f |edef Mol|eDataBlo|
|00003750| 63 6b 20 2a 4d 6f 6c 65 | 44 61 74 61 42 6c 6f 63 |ck *Mole|DataBloc|
|00003760| 6b 50 74 72 3b 0d 0d 0d | 2f 2a 20 2d 2d 2d 2d 2d |kPtr;...|/* -----|
|00003770| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 56 55 41 |--------|---- VUA|
|00003780| 73 73 69 73 74 20 63 6c | 61 73 73 65 73 20 2d 2d |ssist cl|asses --|
|00003790| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000037a0| 2d 2d 20 2a 2f 0d 0d 63 | 6c 61 73 73 20 45 58 50 |-- */..c|lass EXP|
|000037b0| 4f 52 54 5f 4d 41 20 54 | 47 72 69 64 49 74 65 6d |ORT_MA T|GridItem|
|000037c0| 0d 2f 2f 20 54 68 65 20 | 54 47 72 69 64 49 74 65 |.// The |TGridIte|
|000037d0| 6d 20 63 6c 61 73 73 20 | 69 73 20 69 6e 74 65 72 |m class |is inter|
|000037e0| 6e 61 6c 20 74 6f 20 4d | 61 63 41 70 70 2e 0d 7b |nal to M|acApp..{|
|000037f0| 0d 70 75 62 6c 69 63 3a | 0d 09 54 47 72 69 64 49 |.public:|..TGridI|
|00003800| 74 65 6d 28 54 47 72 69 | 64 56 69 65 77 20 2a 74 |tem(TGri|dView *t|
|00003810| 68 65 47 72 69 64 56 69 | 65 77 20 3d 20 4e 55 4c |heGridVi|ew = NUL|
|00003820| 4c 2c 20 73 68 6f 72 74 | 20 72 61 6e 6b 20 3d 20 |L, short| rank = |
|00003830| 30 29 3b 0d 0d 09 69 6e | 6c 69 6e 65 20 7e 54 47 |0);...in|line ~TG|
|00003840| 72 69 64 49 74 65 6d 28 | 29 20 7b 20 7d 3b 0d 09 |ridItem(|) { };..|
|00003850| 09 2f 2f 20 44 65 73 74 | 72 75 63 74 6f 72 0d 0d |.// Dest|ructor..|
|00003860| 09 76 6f 69 64 20 47 65 | 74 45 78 74 65 6e 74 28 |.void Ge|tExtent(|
|00003870| 43 56 69 65 77 52 65 63 | 74 26 20 69 74 73 45 78 |CViewRec|t& itsEx|
|00003880| 74 65 6e 74 29 3b 0d 09 | 76 6f 69 64 20 4c 6f 63 |tent);..|void Loc|
|00003890| 61 6c 54 6f 57 69 6e 64 | 6f 77 28 43 56 69 65 77 |alToWind|ow(CView|
|000038a0| 50 6f 69 6e 74 20 2a 74 | 68 65 50 6f 69 6e 74 29 |Point *t|hePoint)|
|000038b0| 3b 0d 0d 70 75 62 6c 69 | 63 3a 0d 09 54 47 72 69 |;..publi|c:..TGri|
|000038c0| 64 56 69 65 77 20 2a 66 | 47 72 69 64 56 69 65 77 |dView *f|GridView|
|000038d0| 3b 09 2f 2a 20 72 65 66 | 65 72 65 6e 63 65 20 74 |;./* ref|erence t|
|000038e0| 6f 20 61 20 54 47 72 69 | 64 56 69 65 77 20 6f 62 |o a TGri|dView ob|
|000038f0| 6a 65 63 74 20 2a 2f 0d | 09 6c 6f 6e 67 20 66 43 |ject */.|.long fC|
|00003900| 6f 6c 75 6d 6e 3b 09 09 | 09 2f 2a 20 31 20 62 61 |olumn;..|./* 1 ba|
|00003910| 73 65 64 20 63 6f 75 6e | 74 65 72 20 2a 2f 0d 09 |sed coun|ter */..|
|00003920| 6c 6f 6e 67 20 66 52 6f | 77 3b 09 09 09 09 2f 2a |long fRo|w;..../*|
|00003930| 20 31 20 62 61 73 65 64 | 20 63 6f 75 6e 74 65 72 | 1 based| counter|
|00003940| 20 2a 2f 0d 09 6c 6f 6e | 67 20 66 52 61 6e 6b 3b | */..lon|g fRank;|
|00003950| 09 09 09 09 2f 2a 20 28 | 72 6f 77 2d 31 29 20 2a |..../* (|row-1) *|
|00003960| 20 72 6f 77 6c 65 6e 67 | 74 68 20 2b 20 63 6f 6c | rowleng|th + col|
|00003970| 75 6d 6e 20 2a 2f 0d 7d | 3b 0d 0d 74 79 70 65 64 |umn */.}|;..typed|
|00003980| 65 66 20 6c 6f 6e 67 20 | 28 2a 4d 6f 6c 65 48 6f |ef long |(*MoleHo|
|00003990| 6f 6b 50 72 6f 63 50 74 | 72 29 28 6c 6f 6e 67 20 |okProcPt|r)(long |
|000039a0| 73 65 6c 65 63 74 2c 20 | 50 74 72 20 69 6e 70 75 |select, |Ptr inpu|
|000039b0| 74 2c 20 50 74 72 20 6f | 75 74 70 75 74 2c 20 73 |t, Ptr o|utput, s|
|000039c0| 68 6f 72 74 20 2a 6f 75 | 74 70 75 74 53 69 7a 65 |hort *ou|tputSize|
|000039d0| 2c 20 6c 6f 6e 67 20 52 | 65 73 75 6c 74 29 3b 0d |, long R|esult);.|
|000039e0| 0d 65 6e 75 6d 0d 7b 0d | 09 75 70 70 4d 6f 6c 65 |.enum.{.|.uppMole|
|000039f0| 48 6f 6f 6b 50 72 6f 63 | 49 6e 66 6f 20 3d 20 6b |HookProc|Info = k|
|00003a00| 43 53 74 61 63 6b 42 61 | 73 65 64 0d 09 09 7c 20 |CStackBa|sed...| |
|00003a10| 52 45 53 55 4c 54 5f 53 | 49 5a 45 28 53 49 5a 45 |RESULT_S|IZE(SIZE|
|00003a20| 5f 43 4f 44 45 28 73 69 | 7a 65 6f 66 28 6c 6f 6e |_CODE(si|zeof(lon|
|00003a30| 67 29 29 29 0d 09 09 7c | 20 53 54 41 43 4b 5f 52 |g)))...|| STACK_R|
|00003a40| 4f 55 54 49 4e 45 5f 50 | 41 52 41 4d 45 54 45 52 |OUTINE_P|ARAMETER|
|00003a50| 28 31 2c 20 53 49 5a 45 | 5f 43 4f 44 45 28 73 69 |(1, SIZE|_CODE(si|
|00003a60| 7a 65 6f 66 28 6c 6f 6e | 67 29 29 29 0d 09 09 7c |zeof(lon|g)))...||
|00003a70| 20 53 54 41 43 4b 5f 52 | 4f 55 54 49 4e 45 5f 50 | STACK_R|OUTINE_P|
|00003a80| 41 52 41 4d 45 54 45 52 | 28 32 2c 20 53 49 5a 45 |ARAMETER|(2, SIZE|
|00003a90| 5f 43 4f 44 45 28 73 69 | 7a 65 6f 66 28 50 74 72 |_CODE(si|zeof(Ptr|
|00003aa0| 29 29 29 0d 09 09 7c 20 | 53 54 41 43 4b 5f 52 4f |)))...| |STACK_RO|
|00003ab0| 55 54 49 4e 45 5f 50 41 | 52 41 4d 45 54 45 52 28 |UTINE_PA|RAMETER(|
|00003ac0| 33 2c 20 53 49 5a 45 5f | 43 4f 44 45 28 73 69 7a |3, SIZE_|CODE(siz|
|00003ad0| 65 6f 66 28 50 74 72 29 | 29 29 0d 09 09 7c 20 53 |eof(Ptr)|))...| S|
|00003ae0| 54 41 43 4b 5f 52 4f 55 | 54 49 4e 45 5f 50 41 52 |TACK_ROU|TINE_PAR|
|00003af0| 41 4d 45 54 45 52 28 34 | 2c 20 53 49 5a 45 5f 43 |AMETER(4|, SIZE_C|
|00003b00| 4f 44 45 28 73 69 7a 65 | 6f 66 28 73 68 6f 72 74 |ODE(size|of(short|
|00003b10| 20 2a 29 29 29 0d 09 09 | 7c 20 53 54 41 43 4b 5f | *)))...|| STACK_|
|00003b20| 52 4f 55 54 49 4e 45 5f | 50 41 52 41 4d 45 54 45 |ROUTINE_|PARAMETE|
|00003b30| 52 28 35 2c 20 53 49 5a | 45 5f 43 4f 44 45 28 73 |R(5, SIZ|E_CODE(s|
|00003b40| 69 7a 65 6f 66 28 6c 6f | 6e 67 29 29 29 0d 7d 3b |izeof(lo|ng))).};|
|00003b50| 0d 0d 23 69 66 20 55 53 | 45 53 52 4f 55 54 49 4e |..#if US|ESROUTIN|
|00003b60| 45 44 45 53 43 52 49 50 | 54 4f 52 53 0d 74 79 70 |EDESCRIP|TORS.typ|
|00003b70| 65 64 65 66 20 55 6e 69 | 76 65 72 73 61 6c 50 72 |edef Uni|versalPr|
|00003b80| 6f 63 50 74 72 20 4d 6f | 6c 65 48 6f 6f 6b 55 50 |ocPtr Mo|leHookUP|
|00003b90| 50 3b 0d 0d 23 64 65 66 | 69 6e 65 20 43 61 6c 6c |P;..#def|ine Call|
|00003ba0| 4d 6f 6c 65 48 6f 6f 6b | 50 72 6f 63 28 75 73 65 |MoleHook|Proc(use|
|00003bb0| 72 52 6f 75 74 69 6e 65 | 2c 20 76 61 72 43 6f 64 |rRoutine|, varCod|
|00003bc0| 65 2c 20 74 68 65 57 69 | 6e 64 6f 77 2c 20 6d 65 |e, theWi|ndow, me|
|00003bd0| 73 73 61 67 65 2c 20 70 | 61 72 61 6d 29 09 09 5c |ssage, p|aram)..\|
|00003be0| 0d 09 09 43 61 6c 6c 55 | 6e 69 76 65 72 73 61 6c |...CallU|niversal|
|00003bf0| 50 72 6f 63 28 28 55 6e | 69 76 65 72 73 61 6c 50 |Proc((Un|iversalP|
|00003c00| 72 6f 63 50 74 72 29 28 | 75 73 65 72 52 6f 75 74 |rocPtr)(|userRout|
|00003c10| 69 6e 65 29 2c 20 75 70 | 70 4d 6f 6c 65 48 6f 6f |ine), up|pMoleHoo|
|00003c20| 6b 50 72 6f 63 49 6e 66 | 6f 2c 20 28 76 61 72 43 |kProcInf|o, (varC|
|00003c30| 6f 64 65 29 2c 20 28 74 | 68 65 57 69 6e 64 6f 77 |ode), (t|heWindow|
|00003c40| 29 2c 20 28 6d 65 73 73 | 61 67 65 29 2c 20 28 70 |), (mess|age), (p|
|00003c50| 61 72 61 6d 29 29 0d 23 | 64 65 66 69 6e 65 20 4e |aram)).#|define N|
|00003c60| 65 77 4d 6f 6c 65 48 6f | 6f 6b 50 72 6f 63 28 75 |ewMoleHo|okProc(u|
|00003c70| 73 65 72 52 6f 75 74 69 | 6e 65 29 09 5c 0d 09 09 |serRouti|ne).\...|
|00003c80| 28 4d 6f 6c 65 48 6f 6f | 6b 55 50 50 29 20 4e 65 |(MoleHoo|kUPP) Ne|
|00003c90| 77 52 6f 75 74 69 6e 65 | 44 65 73 63 72 69 70 74 |wRoutine|Descript|
|00003ca0| 6f 72 28 28 50 72 6f 63 | 50 74 72 29 28 75 73 65 |or((Proc|Ptr)(use|
|00003cb0| 72 52 6f 75 74 69 6e 65 | 29 2c 20 75 70 70 4d 6f |rRoutine|), uppMo|
|00003cc0| 6c 65 48 6f 6f 6b 50 72 | 6f 63 49 6e 66 6f 2c 20 |leHookPr|ocInfo, |
|00003cd0| 47 65 74 43 75 72 72 65 | 6e 74 41 72 63 68 69 74 |GetCurre|ntArchit|
|00003ce0| 65 63 74 75 72 65 28 29 | 29 0d 23 65 6c 73 65 0d |ecture()|).#else.|
|00003cf0| 74 79 70 65 64 65 66 20 | 4d 6f 6c 65 48 6f 6f 6b |typedef |MoleHook|
|00003d00| 50 72 6f 63 50 74 72 20 | 4d 6f 6c 65 48 6f 6f 6b |ProcPtr |MoleHook|
|00003d10| 55 50 50 3b 0d 0d 23 64 | 65 66 69 6e 65 20 43 61 |UPP;..#d|efine Ca|
|00003d20| 6c 6c 4d 6f 6c 65 48 6f | 6f 6b 50 72 6f 63 28 75 |llMoleHo|okProc(u|
|00003d30| 73 65 72 52 6f 75 74 69 | 6e 65 2c 20 76 61 72 43 |serRouti|ne, varC|
|00003d40| 6f 64 65 2c 20 74 68 65 | 57 69 6e 64 6f 77 2c 20 |ode, the|Window, |
|00003d50| 6d 65 73 73 61 67 65 2c | 20 70 61 72 61 6d 29 09 |message,| param).|
|00003d60| 09 5c 0d 09 09 28 2a 28 | 75 73 65 72 52 6f 75 74 |.\...(*(|userRout|
|00003d70| 69 6e 65 29 29 28 28 76 | 61 72 43 6f 64 65 29 2c |ine))((v|arCode),|
|00003d80| 20 28 74 68 65 57 69 6e | 64 6f 77 29 2c 20 28 6d | (theWin|dow), (m|
|00003d90| 65 73 73 61 67 65 29 2c | 20 28 70 61 72 61 6d 29 |essage),| (param)|
|00003da0| 29 0d 23 64 65 66 69 6e | 65 20 4e 65 77 4d 6f 6c |).#defin|e NewMol|
|00003db0| 65 48 6f 6f 6b 50 72 6f | 63 28 75 73 65 72 52 6f |eHookPro|c(userRo|
|00003dc0| 75 74 69 6e 65 29 09 5c | 0d 09 09 28 28 4d 6f 6c |utine).\|...((Mol|
|00003dd0| 65 48 6f 6f 6b 55 50 50 | 29 20 28 75 73 65 72 52 |eHookUPP|) (userR|
|00003de0| 6f 75 74 69 6e 65 29 29 | 0d 23 65 6e 64 69 66 0d |outine))|.#endif.|
|00003df0| 09 09 0d 63 6c 61 73 73 | 20 45 58 50 4f 52 54 5f |...class| EXPORT_|
|00003e00| 4d 41 20 54 56 55 41 73 | 73 69 73 74 20 3a 20 70 |MA TVUAs|sist : p|
|00003e10| 75 62 6c 69 63 20 4d 44 | 65 70 65 6e 64 61 62 6c |ublic MD|ependabl|
|00003e20| 65 5f 41 43 0d 2f 2f 20 | 54 68 65 20 54 56 55 41 |e_AC.// |The TVUA|
|00003e30| 73 73 69 73 74 20 63 6c | 61 73 73 20 69 73 20 69 |ssist cl|ass is i|
|00003e40| 6e 74 65 72 6e 61 6c 20 | 74 6f 20 4d 61 63 41 70 |nternal |to MacAp|
|00003e50| 70 2e 0d 7b 0d 70 75 62 | 6c 69 63 3a 0d 09 54 56 |p..{.pub|lic:..TV|
|00003e60| 55 41 73 73 69 73 74 28 | 62 6f 6f 6c 20 67 72 69 |UAssist(|bool gri|
|00003e70| 64 49 74 65 6d 53 75 70 | 70 6f 72 74 20 3d 20 74 |dItemSup|port = t|
|00003e80| 72 75 65 29 3b 0d 09 09 | 2f 2f 20 43 6f 6e 73 74 |rue);...|// Const|
|00003e90| 72 75 63 74 6f 72 0d 0d | 09 76 69 72 74 75 61 6c |ructor..|.virtual|
|00003ea0| 20 7e 54 56 55 41 73 73 | 69 73 74 28 29 3b 0d 09 | ~TVUAss|ist();..|
|00003eb0| 09 2f 2f 20 64 65 73 74 | 72 75 63 74 6f 72 0d 09 |.// dest|ructor..|
|00003ec0| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 20 44 |..virtua|l void D|
|00003ed0| 6f 55 70 64 61 74 65 28 | 43 68 61 6e 67 65 49 44 |oUpdate(|ChangeID|
|00003ee0| 5f 41 43 20 74 68 65 43 | 68 61 6e 67 65 2c 0d 09 |_AC theC|hange,..|
|00003ef0| 09 09 09 09 20 20 20 4d | 44 65 70 65 6e 64 61 62 |.... M|Dependab|
|00003f00| 6c 65 5f 41 43 2a 20 63 | 68 61 6e 67 65 64 4f 62 |le_AC* c|hangedOb|
|00003f10| 6a 65 63 74 2c 0d 09 09 | 09 09 09 20 20 20 76 6f |ject,...|... vo|
|00003f20| 69 64 2a 20 63 68 61 6e | 67 65 44 61 74 61 2c 0d |id* chan|geData,.|
|00003f30| 09 09 09 09 09 20 20 20 | 43 44 65 70 65 6e 64 65 |..... |CDepende|
|00003f40| 6e 63 79 53 70 61 63 65 | 5f 41 43 2a 20 64 65 70 |ncySpace|_AC* dep|
|00003f50| 65 6e 64 65 6e 63 79 53 | 70 61 63 65 29 3b 0d 09 |endencyS|pace);..|
|00003f60| 09 2f 2f 20 64 65 61 63 | 74 69 76 61 74 65 2f 72 |.// deac|tivate/r|
|00003f70| 65 61 63 74 69 76 61 74 | 65 20 4d 6f 6c 65 20 77 |eactivat|e Mole w|
|00003f80| 68 65 6e 20 74 68 69 73 | 20 64 65 70 65 6e 64 65 |hen this| depende|
|00003f90| 6e 63 79 20 69 73 20 63 | 61 6c 6c 65 64 0d 0d 09 |ncy is c|alled...|
|00003fa0| 76 6f 69 64 20 4f 70 65 | 6e 4d 6f 6c 65 44 72 69 |void Ope|nMoleDri|
|00003fb0| 76 65 72 28 29 3b 0d 09 | 76 6f 69 64 20 53 75 73 |ver();..|void Sus|
|00003fc0| 70 65 6e 64 4d 6f 6c 65 | 28 29 3b 0d 09 76 6f 69 |pendMole|();..voi|
|00003fd0| 64 20 52 65 73 75 6d 65 | 4d 6f 6c 65 28 29 3b 0d |d Resume|Mole();.|
|00003fe0| 09 76 6f 69 64 20 53 65 | 74 44 65 62 75 67 67 65 |.void Se|tDebugge|
|00003ff0| 72 48 6f 6f 6b 28 4d 6f | 6c 65 48 6f 6f 6b 55 50 |rHook(Mo|leHookUP|
|00004000| 50 20 6e 65 77 48 6f 6f | 6b 29 3b 0d 09 4d 6f 6c |P newHoo|k);..Mol|
|00004010| 65 45 72 72 6f 72 20 4d | 6f 6c 65 41 73 73 69 73 |eError M|oleAssis|
|00004020| 74 28 6c 6f 6e 67 20 73 | 65 6c 65 63 74 2c 20 50 |t(long s|elect, P|
|00004030| 74 72 20 69 6e 70 75 74 | 2c 20 50 74 72 20 6f 75 |tr input|, Ptr ou|
|00004040| 74 70 75 74 2c 20 73 68 | 6f 72 74 20 2a 6f 75 74 |tput, sh|ort *out|
|00004050| 70 75 74 53 69 7a 65 2c | 20 6c 6f 6e 67 20 69 6e |putSize,| long in|
|00004060| 74 52 65 73 75 6c 74 29 | 3b 0d 0d 09 4d 6f 6c 65 |tResult)|;...Mole|
|00004070| 45 72 72 6f 72 20 44 6f | 4d 65 6e 75 49 74 65 6d |Error Do|MenuItem|
|00004080| 73 28 50 74 72 20 69 6e | 70 75 74 2c 20 50 74 72 |s(Ptr in|put, Ptr|
|00004090| 20 6f 75 74 70 75 74 2c | 20 73 68 6f 72 74 20 2a | output,| short *|
|000040a0| 6f 75 74 70 75 74 53 69 | 7a 65 2c 20 4d 6f 6c 65 |outputSi|ze, Mole|
|000040b0| 45 72 72 6f 72 20 52 65 | 73 75 6c 74 29 3b 0d 09 |Error Re|sult);..|
|000040c0| 4d 6f 6c 65 45 72 72 6f | 72 20 44 6f 4d 65 6e 75 |MoleErro|r DoMenu|
|000040d0| 49 6e 66 6f 28 50 74 72 | 20 69 6e 70 75 74 2c 20 |Info(Ptr| input, |
|000040e0| 50 74 72 20 6f 75 74 70 | 75 74 2c 20 73 68 6f 72 |Ptr outp|ut, shor|
|000040f0| 74 20 2a 6f 75 74 70 75 | 74 53 69 7a 65 2c 20 4d |t *outpu|tSize, M|
|00004100| 6f 6c 65 45 72 72 6f 72 | 20 52 65 73 75 6c 74 29 |oleError| Result)|
|00004110| 3b 0d 09 4d 6f 6c 65 45 | 72 72 6f 72 20 44 6f 53 |;..MoleE|rror DoS|
|00004120| 65 6e 64 57 69 6e 64 6f | 77 49 6e 66 6f 28 50 74 |endWindo|wInfo(Pt|
|00004130| 72 20 69 6e 70 75 74 2c | 20 50 74 72 20 6f 75 74 |r input,| Ptr out|
|00004140| 70 75 74 2c 20 73 68 6f | 72 74 20 2a 6f 75 74 70 |put, sho|rt *outp|
|00004150| 75 74 53 69 7a 65 2c 20 | 4d 6f 6c 65 45 72 72 6f |utSize, |MoleErro|
|00004160| 72 20 52 65 73 75 6c 74 | 29 3b 0d 09 4d 6f 6c 65 |r Result|);..Mole|
|00004170| 45 72 72 6f 72 20 44 6f | 46 69 6e 64 43 6f 6e 74 |Error Do|FindCont|
|00004180| 72 6f 6c 28 50 74 72 20 | 69 6e 70 75 74 2c 20 50 |rol(Ptr |input, P|
|00004190| 74 72 20 6f 75 74 70 75 | 74 2c 20 73 68 6f 72 74 |tr outpu|t, short|
|000041a0| 20 2a 6f 75 74 70 75 74 | 53 69 7a 65 2c 20 4d 6f | *output|Size, Mo|
|000041b0| 6c 65 45 72 72 6f 72 20 | 52 65 73 75 6c 74 29 3b |leError |Result);|
|000041c0| 0d 09 4d 6f 6c 65 45 72 | 72 6f 72 20 44 6f 53 65 |..MoleEr|ror DoSe|
|000041d0| 6e 64 43 6f 6e 74 72 6f | 6c 49 6e 66 6f 28 50 74 |ndContro|lInfo(Pt|
|000041e0| 72 20 69 6e 70 75 74 2c | 20 50 74 72 20 6f 75 74 |r input,| Ptr out|
|000041f0| 70 75 74 2c 20 73 68 6f | 72 74 20 2a 6f 75 74 70 |put, sho|rt *outp|
|00004200| 75 74 53 69 7a 65 2c 20 | 4d 6f 6c 65 45 72 72 6f |utSize, |MoleErro|
|00004210| 72 20 52 65 73 75 6c 74 | 29 3b 0d 09 4d 6f 6c 65 |r Result|);..Mole|
|00004220| 45 72 72 6f 72 20 44 6f | 53 65 6e 64 44 6c 6f 67 |Error Do|SendDlog|
|00004230| 49 74 65 6d 49 6e 66 6f | 28 50 74 72 20 69 6e 70 |ItemInfo|(Ptr inp|
|00004240| 75 74 2c 20 50 74 72 20 | 6f 75 74 70 75 74 2c 20 |ut, Ptr |output, |
|00004250| 73 68 6f 72 74 20 2a 6f | 75 74 70 75 74 53 69 7a |short *o|utputSiz|
|00004260| 65 2c 20 4d 6f 6c 65 45 | 72 72 6f 72 20 52 65 73 |e, MoleE|rror Res|
|00004270| 75 6c 74 29 3b 0d 09 76 | 6f 69 64 20 46 69 6c 6c |ult);..v|oid Fill|
|00004280| 50 6f 70 75 70 44 65 73 | 63 28 4d 65 6e 75 52 65 |PopupDes|c(MenuRe|
|00004290| 66 20 74 68 65 4d 65 6e | 75 48 64 6c 2c 20 73 68 |f theMen|uHdl, sh|
|000042a0| 6f 72 74 20 6d 65 6e 75 | 52 61 6e 6b 2c 20 4d 6f |ort menu|Rank, Mo|
|000042b0| 6c 65 4d 65 6e 75 49 6e | 66 6f 50 74 72 20 6d 65 |leMenuIn|foPtr me|
|000042c0| 6e 75 44 65 73 63 50 74 | 72 2c 20 73 68 6f 72 74 |nuDescPt|r, short|
|000042d0| 20 2a 6f 75 74 70 75 74 | 53 69 7a 65 29 3b 0d 09 | *output|Size);..|
|000042e0| 4d 6f 6c 65 45 72 72 6f | 72 20 46 69 6c 6c 50 6f |MoleErro|r FillPo|
|000042f0| 70 75 70 49 74 65 6d 44 | 65 73 63 28 4d 65 6e 75 |pupItemD|esc(Menu|
|00004300| 52 65 66 20 74 68 65 4d | 65 6e 75 48 64 6c 2c 20 |Ref theM|enuHdl, |
|00004310| 73 68 6f 72 74 20 73 74 | 61 72 74 2c 20 73 68 6f |short st|art, sho|
|00004320| 72 74 20 73 74 6f 70 2c | 0d 09 09 09 09 09 09 09 |rt stop,|........|
|00004330| 09 09 09 4d 6f 6c 65 44 | 61 74 61 42 6c 6f 63 6b |...MoleD|ataBlock|
|00004340| 50 74 72 20 6d 65 6e 75 | 49 74 65 6d 44 65 73 63 |Ptr menu|ItemDesc|
|00004350| 50 74 72 2c 20 73 68 6f | 72 74 20 2a 6f 75 74 70 |Ptr, sho|rt *outp|
|00004360| 75 74 53 69 7a 65 29 3b | 0d 09 62 6f 6f 6c 20 46 |utSize);|..bool F|
|00004370| 69 6c 6c 43 74 72 6c 44 | 65 73 63 28 4d 6f 6c 65 |illCtrlD|esc(Mole|
|00004380| 43 44 65 73 63 50 74 72 | 20 43 74 72 6c 44 65 73 |CDescPtr| CtrlDes|
|00004390| 63 50 74 72 2c 20 73 68 | 6f 72 74 20 74 68 65 50 |cPtr, sh|ort theP|
|000043a0| 61 72 74 2c 20 73 68 6f | 72 74 20 77 69 6e 64 6f |art, sho|rt windo|
|000043b0| 77 52 61 6e 6b 2c 0d 09 | 09 09 09 09 09 09 09 09 |wRank,..|........|
|000043c0| 09 73 68 6f 72 74 20 43 | 6f 6e 74 72 6f 6c 52 61 |.short C|ontrolRa|
|000043d0| 6e 6b 2c 20 54 43 6f 6e | 74 72 6f 6c 20 2a 74 68 |nk, TCon|trol *th|
|000043e0| 65 43 6f 6e 74 72 6f 6c | 2c 20 73 68 6f 72 74 20 |eControl|, short |
|000043f0| 2a 6f 75 74 70 75 74 53 | 69 7a 65 29 3b 0d 09 76 |*outputS|ize);..v|
|00004400| 6f 69 64 20 56 69 65 77 | 52 65 63 74 54 6f 57 69 |oid View|RectToWi|
|00004410| 6e 64 6f 77 52 65 63 74 | 28 52 65 63 74 20 2a 61 |ndowRect|(Rect *a|
|00004420| 52 65 63 74 2c 20 54 56 | 69 65 77 20 2a 61 56 69 |Rect, TV|iew *aVi|
|00004430| 65 77 29 3b 0d 09 76 6f | 69 64 20 46 69 6c 6c 44 |ew);..vo|id FillD|
|00004440| 6c 6f 67 49 74 65 6d 44 | 65 73 63 28 4d 6f 6c 65 |logItemD|esc(Mole|
|00004450| 44 49 74 65 6d 49 6e 66 | 6f 50 74 72 20 64 6c 6f |DItemInf|oPtr dlo|
|00004460| 67 44 65 73 63 50 74 72 | 2c 20 54 57 69 6e 64 6f |gDescPtr|, TWindo|
|00004470| 77 20 2a 77 69 6e 64 6f | 77 2c 0d 09 09 09 09 09 |w *windo|w,......|
|00004480| 09 09 09 09 09 20 73 68 | 6f 72 74 20 77 69 6e 64 |..... sh|ort wind|
|00004490| 6f 77 52 61 6e 6b 2c 20 | 73 68 6f 72 74 20 69 74 |owRank, |short it|
|000044a0| 65 6d 52 61 6e 6b 2c 20 | 54 56 69 65 77 20 2a 49 |emRank, |TView *I|
|000044b0| 74 65 6d 2c 0d 09 09 09 | 09 09 09 09 09 09 09 20 |tem,....|....... |
|000044c0| 73 68 6f 72 74 20 2a 6f | 75 74 70 75 74 53 69 7a |short *o|utputSiz|
|000044d0| 65 2c 20 54 47 72 69 64 | 49 74 65 6d 20 2a 67 72 |e, TGrid|Item *gr|
|000044e0| 69 64 49 74 65 6d 29 3b | 0d 09 54 57 69 6e 64 6f |idItem);|..TWindo|
|000044f0| 77 20 2a 52 61 6e 6b 54 | 6f 57 69 6e 64 6f 77 28 |w *RankT|oWindow(|
|00004500| 73 68 6f 72 74 20 72 61 | 6e 6b 29 3b 0d 09 73 68 |short ra|nk);..sh|
|00004510| 6f 72 74 20 57 69 6e 64 | 6f 77 54 6f 52 61 6e 6b |ort Wind|owToRank|
|00004520| 28 57 69 6e 64 6f 77 52 | 65 66 20 57 69 6e 64 54 |(WindowR|ef WindT|
|00004530| 6f 46 69 6e 64 29 3b 0d | 09 76 6f 69 64 20 47 6c |oFind);.|.void Gl|
|00004540| 6f 62 61 6c 54 6f 57 69 | 6e 64 6f 77 28 54 57 69 |obalToWi|ndow(TWi|
|00004550| 6e 64 6f 77 20 2a 77 69 | 6e 64 6f 77 2c 20 50 6f |ndow *wi|ndow, Po|
|00004560| 69 6e 74 20 50 74 2c 20 | 43 56 69 65 77 50 6f 69 |int Pt, |CViewPoi|
|00004570| 6e 74 20 2a 56 50 74 29 | 3b 0d 09 76 6f 69 64 20 |nt *VPt)|;..void |
|00004580| 57 69 6e 64 6f 77 54 6f | 56 69 65 77 28 54 56 69 |WindowTo|View(TVi|
|00004590| 65 77 20 2a 76 69 65 77 | 2c 20 43 56 69 65 77 50 |ew *view|, CViewP|
|000045a0| 6f 69 6e 74 20 2a 56 50 | 74 2c 20 50 6f 69 6e 74 |oint *VP|t, Point|
|000045b0| 20 2a 50 74 29 3b 0d 09 | 54 50 6f 70 75 70 20 2a | *Pt);..|TPopup *|
|000045c0| 4d 65 6e 75 49 44 54 6f | 50 6f 70 75 70 28 73 68 |MenuIDTo|Popup(sh|
|000045d0| 6f 72 74 20 6d 65 6e 75 | 49 44 29 3b 0d 09 54 43 |ort menu|ID);..TC|
|000045e0| 74 6c 4d 67 72 20 2a 50 | 6f 69 6e 74 54 6f 43 6f |tlMgr *P|ointToCo|
|000045f0| 6e 74 72 6f 6c 28 54 57 | 69 6e 64 6f 77 20 2a 77 |ntrol(TW|indow *w|
|00004600| 69 6e 64 6f 77 2c 20 50 | 6f 69 6e 74 20 50 74 2c |indow, P|oint Pt,|
|00004610| 20 73 68 6f 72 74 20 2a | 72 61 6e 6b 29 3b 0d 09 | short *|rank);..|
|00004620| 73 68 6f 72 74 20 56 69 | 65 77 43 6f 75 6e 74 28 |short Vi|ewCount(|
|00004630| 54 57 69 6e 64 6f 77 20 | 2a 77 69 6e 64 6f 77 2c |TWindow |*window,|
|00004640| 20 62 6f 6f 6c 20 64 6c | 6f 67 56 69 65 77 49 74 | bool dl|ogViewIt|
|00004650| 65 6d 73 29 3b 0d 09 73 | 68 6f 72 74 20 49 74 65 |ems);..s|hort Ite|
|00004660| 6d 54 6f 52 61 6e 6b 28 | 54 57 69 6e 64 6f 77 20 |mToRank(|TWindow |
|00004670| 2a 77 69 6e 64 6f 77 2c | 20 54 56 69 65 77 20 2a |*window,| TView *|
|00004680| 76 69 65 77 2c 20 62 6f | 6f 6c 20 64 6c 6f 67 56 |view, bo|ol dlogV|
|00004690| 69 65 77 49 74 65 6d 73 | 29 3b 0d 09 54 56 69 65 |iewItems|);..TVie|
|000046a0| 77 20 2a 52 61 6e 6b 54 | 6f 49 74 65 6d 28 54 57 |w *RankT|oItem(TW|
|000046b0| 69 6e 64 6f 77 20 2a 77 | 69 6e 64 6f 77 2c 20 73 |indow *w|indow, s|
|000046c0| 68 6f 72 74 20 72 61 6e | 6b 2c 20 62 6f 6f 6c 20 |hort ran|k, bool |
|000046d0| 64 6c 6f 67 56 69 65 77 | 49 74 65 6d 73 2c 0d 09 |dlogView|Items,..|
|000046e0| 09 09 09 09 09 09 09 09 | 20 54 47 72 69 64 49 74 |........| TGridIt|
|000046f0| 65 6d 2a 26 20 67 72 69 | 64 49 74 65 6d 29 3b 0d |em*& gri|dItem);.|
|00004700| 09 73 68 6f 72 74 20 43 | 6f 75 6e 74 47 72 69 64 |.short C|ountGrid|
|00004710| 49 74 65 6d 73 28 54 47 | 72 69 64 56 69 65 77 20 |Items(TG|ridView |
|00004720| 2a 74 68 65 47 72 69 64 | 56 69 65 77 29 3b 0d 09 |*theGrid|View);..|
|00004730| 56 69 65 77 49 74 65 6d | 73 20 47 65 74 49 74 65 |ViewItem|s GetIte|
|00004740| 6d 54 79 70 65 28 54 56 | 69 65 77 20 2a 49 74 65 |mType(TV|iew *Ite|
|00004750| 6d 2c 20 62 6f 6f 6c 20 | 64 6c 6f 67 56 69 65 77 |m, bool |dlogView|
|00004760| 49 74 65 6d 73 2c 20 62 | 6f 6f 6c 20 67 72 69 64 |Items, b|ool grid|
|00004770| 56 69 65 77 49 74 65 6d | 73 29 3b 0d 09 0d 70 75 |ViewItem|s);...pu|
|00004780| 62 6c 69 63 3a 0d 09 73 | 68 6f 72 74 20 66 4d 6f |blic:..s|hort fMo|
|00004790| 6c 65 52 65 66 4e 75 6d | 3b 0d 09 62 6f 6f 6c 20 |leRefNum|;..bool |
|000047a0| 66 47 72 69 64 49 74 65 | 6d 53 75 70 70 6f 72 74 |fGridIte|mSupport|
|000047b0| 3b 0d 0d 09 73 74 61 74 | 69 63 20 43 41 75 74 6f |;...stat|ic CAuto|
|000047c0| 50 74 72 5f 41 43 3c 54 | 56 55 41 73 73 69 73 74 |Ptr_AC<T|VUAssist|
|000047d0| 3e 20 66 67 56 55 41 73 | 73 69 73 74 3b 0d 7d 3b |> fgVUAs|sist;.};|
|000047e0| 0d 0d 2f 2a 20 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |../* ===|========|
|000047f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004800| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004810| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004820| 3d 3d 3d 3d 3d 3d 3d 20 | 2a 2f 0d 2f 2a 20 56 61 |======= |*/./* Va|
|00004830| 72 69 61 62 6c 65 20 64 | 65 63 6c 61 72 61 74 69 |riable d|eclarati|
|00004840| 6f 6e 73 20 2a 2f 0d 0d | 23 65 6e 64 69 66 20 2f |ons */..|#endif /|
|00004850| 2f 20 6f 66 20 23 69 66 | 20 71 4e 65 65 64 73 56 |/ of #if| qNeedsV|
|00004860| 55 0d 0d 23 65 6e 64 69 | 66 20 2f 2f 20 6f 66 20 |U..#endi|f // of |
|00004870| 23 69 66 6e 64 65 66 20 | 5f 5f 55 56 55 41 53 53 |#ifndef |__UVUASS|
|00004880| 49 53 54 5f 5f 0d 00 00 | 00 00 00 00 00 00 00 00 |IST__...|........|
|00004890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 00 01 00 00 00 02 0a | 00 00 01 0a 00 00 00 5c |........|.......\|
|00004910| 69 7a 65 20 6f 66 20 74 | 68 65 20 64 65 73 69 67 |ize of t|he desig|
|00004920| 6e 61 74 6f 72 27 73 20 | 64 61 74 61 0d 09 0d 09 |nator's |data....|
|00004930| 0b 55 56 55 41 73 73 69 | 73 74 2e 68 50 44 53 72 |.UVUAssi|st.hPDSr|
|00004940| 20 53 70 6f 6f 6c 65 72 | 69 6c 64 68 70 70 74 6c | Spooler|ildhpptl|
|00004950| 02 00 54 45 58 54 4d 50 | 53 20 00 00 b1 e0 b1 e0 |..TEXTMP|S ......|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 b0 88 ec d5 00 00 | 51 57 00 00 03 f5 75 61 |........|QW....ua|
|00004980| 6c 20 43 6f 6e 74 61 69 | 6e 6d 65 6e 74 54 79 70 |l Contai|nmentTyp|
|00004990| 65 20 49 73 43 6f 6e 74 | 61 69 6e 65 64 28 54 44 |e IsCont|ained(TD|
|000049a0| 65 73 69 67 6e 61 74 6f | 72 2a 20 61 44 65 73 69 |esignato|r* aDesi|
|000049b0| 67 6e 61 74 6f 72 29 3b | 0d 09 2f 2f 20 52 65 74 |gnator);|..// Ret|
|000049c0| 75 72 6e 73 20 61 20 76 | 61 6c 75 65 20 69 6e 64 |urns a v|alue ind|
|000049d0| 69 63 61 74 69 6e 67 20 | 77 68 65 74 68 65 72 20 |icating |whether |
|000049e0| 74 68 69 73 20 64 65 73 | 69 67 6e 61 74 6f 72 20 |this des|ignator |
|000049f0| 69 73 20 63 6f 6e 74 61 | 69 6e 65 64 20 62 79 20 |is conta|ined by |
|00004a00| 00 00 00 49 13 04 80 01 | 00 00 06 31 33 2e 30 2e |...I....|...13.0.|
|00004a10| 34 3b 4d 61 63 41 70 70 | aa 20 52 65 6c 65 61 73 |4;MacApp|. Releas|
|00004a20| 65 20 31 33 20 55 70 64 | 61 74 65 20 34 2c 20 a9 |e 13 Upd|ate 4, .|
|00004a30| 20 41 70 70 6c 65 20 43 | 6f 6d 70 75 74 65 72 2c | Apple C|omputer,|
|00004a40| 20 49 6e 63 2e 20 31 39 | 38 34 2d 39 38 00 00 00 | Inc. 19|84-98...|
|00004a50| 49 13 04 80 01 00 00 06 | 31 33 2e 30 2e 34 3b 4d |I.......|13.0.4;M|
|00004a60| 61 63 41 70 70 aa 20 52 | 65 6c 65 61 73 65 20 31 |acApp. R|elease 1|
|00004a70| 33 20 55 70 64 61 74 65 | 20 34 2c 20 a9 20 41 70 |3 Update| 4, . Ap|
|00004a80| 70 6c 65 20 43 6f 6d 70 | 75 74 65 72 2c 20 49 6e |ple Comp|uter, In|
|00004a90| 63 2e 20 31 39 38 34 2d | 39 38 00 00 00 6c 9f cd |c. 1984-|98...l..|
|00004aa0| 2a 77 3f e5 32 30 00 04 | 00 00 00 01 00 00 00 00 |*w?.20..|........|
|00004ab0| b2 3b ca 2c b2 32 d9 d4 | b2 3b b9 c1 00 21 f3 3b |.;.,.2..|.;...!.;|
|00004ac0| 00 01 00 1b 00 01 15 4f | 67 68 61 6d ba 52 65 6c |.......O|gham.Rel|
|00004ad0| 65 61 73 65 53 63 72 69 | 70 74 73 ba 00 0d 4d 69 |easeScri|pts...Mi|
|00004ae0| 6b 65 20 52 6f 73 73 65 | 74 74 69 00 01 31 00 0d |ke Rosse|tti..1..|
|00004af0| 56 65 72 73 46 6f 72 4d | 61 63 41 70 70 00 07 43 |VersForM|acApp..C|
|00004b00| 72 65 61 74 65 64 00 00 | 00 00 00 00 01 00 00 00 |reated..|........|
|00004b10| 02 0a 00 00 01 0a 00 00 | 00 5c 04 21 df 00 34 84 |........|.\.!..4.|
|00004b20| 00 00 00 1c 00 52 00 01 | 76 65 72 73 00 01 00 12 |.....R..|vers....|
|00004b30| 63 6b 69 64 00 00 00 2a | 00 01 ff ff 20 00 00 00 |ckid...*|.... ...|
|00004b40| 04 21 df 20 00 02 ff ff | 20 00 00 4d 04 21 df 64 |.!. ....| ..M.!.d|
|00004b50| 00 80 00 00 00 00 00 9a | 04 21 de 60 09 50 72 6f |........|.!.`.Pro|
|00004b60| 6a 65 63 74 6f 72 00 00 | 00 00 00 00 00 00 00 00 |jector..|........|
|00004b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+